/**
 * 数据保险箱 — Web 客户端（浏览器访问的网盘 / 保险箱 UI）
 * 浅色、圆角壳体、顶栏 + 双栏，区别于管理后台深色竖条
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #5B79D1;
  --primary-hover: #4a68c0;
  --primary-light: rgba(91, 121, 209, 0.14);
  --sidebar-bg: #f5f7fb;
  --sidebar-active: #e8eefc;
  --page-bg: #e8ecf4;
  --bg-panel: #ffffff;
  --border: #e4e8ef;
  --text-dark: #1a2233;
  --text-mid: #5c6578;
  --text-light: #8b95a8;
  --success: #34a853;
  --danger: #ea4335;
  --rail-w: 168px;
  --sub-w: 168px;
  --topbar-h: 52px;
  --radius: 10px;
  --radius-lg: 16px;
}

html, body {
  height: auto;
  min-height: 100%;
}

body.client-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--page-bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 10% -10%, rgba(91, 121, 209, 0.09), transparent 55%),
    radial-gradient(ellipse 700px 400px at 100% 0%, rgba(91, 121, 209, 0.06), transparent 50%);
  color: var(--text-dark);
  padding: 20px 16px 32px;
  -webkit-font-smoothing: antialiased;
}

/* 浏览器窗口式外壳 */
.app-frame {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 52px);
  min-height: calc(100vh - 52px);
  max-width: 1360px;
  margin: 0 auto;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(26, 34, 51, 0.04),
    0 24px 64px rgba(44, 62, 80, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.app-frame--with-taskbar {
  position: relative;
}

.app-frame--with-taskbar .app-main {
  flex: 1;
  min-height: 0;
}

/* —— Web 顶栏（非系统标题栏） —— */
.titlebar {
  flex-shrink: 0;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 16px 0 20px;
  gap: 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.titlebar .tb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.titlebar .tb-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #3d4350, #252830);
  color: #f0c14b;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 40, 48, 0.2);
}

.titlebar .tb-titles {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.titlebar .tb-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.2px;
}

.titlebar .tb-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
}

.titlebar .tb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.titlebar .tb-btn-win {
  width: 36px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.titlebar .tb-btn-win:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-dark);
}

.titlebar .tb-btn-win.close:hover {
  background: #e81123;
  color: #fff;
}

.titlebar .tb-btn-win svg {
  display: block;
}

body.client-body.no-chrome-padding {
  padding: 0;
}

body.client-body.no-chrome-padding .app-frame {
  min-height: 100vh;
  border-radius: 0;
  max-width: none;
}

/* DS-PC000918（修正版）：桌面客户端（Tauri）同样放开内容宽度与内边距。
   不复用 no-chrome-padding —— styles.css 里
   .client-body.no-chrome-padding .titlebar{display:none} 会隐藏自绘标题栏的
   设置/最小化/最大化/关闭按钮（右上角按钮消失回归）。 */
body.client-body.desktop-client-runtime {
  padding: 0;
}

body.client-body.desktop-client-runtime .app-frame {
  min-height: 100vh;
  border-radius: 0;
  max-width: none;
}

/* —— 主体 —— */
.app-main {
  flex: 1;
  display: flex;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

/* 左侧主导航（浅色 Web 侧边栏） */
.rail {
  width: var(--rail-w);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  gap: 4px;
  overflow: visible;
  z-index: 20;
  transition: width .18s ease;
}

.rail-collapse-button {
  width: 30px;
  height: 28px;
  flex: 0 0 28px;
  align-self: flex-end;
  margin: -4px 4px 10px auto;
  border: 1px solid #d7dee9;
  border-radius: 6px;
  color: #65748c;
  background: rgba(255,255,255,.72);
  cursor: pointer;
  font-size: 18px;
  line-height: 24px;
}
.rail-collapse-button:hover { border-color:#aab9d5; color:#4f6fc2; background:#fff; }
.rail.is-collapsed { width:58px!important; padding-right:6px!important; padding-left:6px!important; }
.rail.is-collapsed .rail-section-label,.rail.is-collapsed .rail-user-caret,.rail.is-collapsed .rail-brand-name { display:none!important; }
.rail.is-collapsed .rail-section { margin-bottom:8px!important; }
.rail.is-collapsed .rail-item { justify-content:center!important; gap:0!important; padding-right:6px!important; padding-left:6px!important; font-size:0!important; }
.rail.is-collapsed .rail-item .sym,.rail.is-collapsed .rail-item-ico { width:22px!important; margin:0!important; font-size:15px!important; }
.rail.is-collapsed .rail-user-wrap { margin-right:0; margin-left:0; }
.rail.is-collapsed .rail-collapse-button { width:38px; align-self:center; margin-right:4px; margin-left:4px; }

.rail-user-wrap {
  position: relative;
  margin: 4px 4px 12px;
  flex-shrink: 0;
}

.rail-user-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 4px 6px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}

.rail-user-trigger:hover {
  background: rgba(255, 255, 255, 0.7);
}

.rail-user-caret {
  font-size: 10px;
  color: var(--text-light);
  line-height: 1;
}

.rail-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7d94e0 0%, var(--primary) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(91, 121, 209, 0.28);
}

.rail-avatar--dark {
  border-radius: 50%;
  background: #3d4452;
  box-shadow: none;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.rail-avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 13px;
  box-shadow: 0 0 0 2px rgba(91, 121, 209, 0.25);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  min-width: 168px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(26, 34, 51, 0.14);
  border: 1px solid var(--border);
  overflow: hidden;
}

.user-dropdown[hidden] {
  display: none;
}

.user-dropdown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #f3f6fc 0%, #eef2fa 100%);
  border-bottom: 1px solid var(--border);
}

.user-dropdown-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.user-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: #fff;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
}

.user-dropdown-item:hover {
  background: #f5f7fa;
}

.user-dropdown-item + .user-dropdown-item {
  border-top: 1px solid #f0f2f5;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay.z-top {
  z-index: 1200;
}

.modal-overlay.z-top-migrate {
  z-index: 1300;
}

.modal-overlay.z-top-remark {
  z-index: 1310;
}

.modal-overlay.z-top-access {
  z-index: 1320;
}

.modal-overlay.z-top-preview {
  z-index: 1330;
}

.modal-overlay.z-top-login {
  z-index: 1400;
}

/* —— 通用弹窗壳（与设置弹窗一致） —— */
.modal-dialog.client-dialog,
.modal-dialog.settings-dialog {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(44, 62, 80, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.client-dialog > .modal-head,
.settings-dialog > .modal-head {
  flex-shrink: 0;
  background: linear-gradient(180deg, #fafafa 0%, #f3f5f9 100%);
}

.client-dialog > .modal-footer,
.settings-dialog .settings-panel-footer {
  border-top: 1px solid var(--border);
  background: #fbfcfe;
}

/* 弹窗内表单控件统一 */
.client-dialog > .modal-body select,
.client-dialog > .modal-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.client-dialog > .modal-body textarea,
.reject-remark-dialog .reject-remark-row textarea,
.reject-remark-dialog .reject-remark-row select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.client-dialog > .modal-body select,
.client-dialog > .modal-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(textarea),
.reject-remark-dialog .reject-remark-row select {
  height: 40px;
  padding: 0 12px;
  appearance: auto;
}

.client-dialog > .modal-body textarea,
.reject-remark-dialog .reject-remark-row textarea {
  padding: 10px 14px;
  line-height: 1.5;
  resize: vertical;
}

.client-dialog > .modal-body select:focus,
.client-dialog > .modal-body input:focus,
.client-dialog > .modal-body textarea:focus,
.reject-remark-dialog .reject-remark-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 121, 209, 0.12);
}

.client-dialog > .modal-body input:disabled {
  background: #f0f2f6;
  color: var(--text-mid);
  border-color: #e4e8ef;
  cursor: not-allowed;
}

/* 自定义下拉（圆角面板） */
.client-select {
  position: relative;
  flex: 1;
  min-width: 0;
}

.client-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.client-select-trigger:hover {
  border-color: #cfd6e4;
}

.client-select.is-open .client-select-trigger,
.client-select-trigger:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 121, 209, 0.12);
}

.client-select-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-select-label.is-placeholder {
  color: var(--text-mid);
}

.client-select-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-mid);
  pointer-events: none;
}

.client-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.12);
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
}





.client-select-menu[hidden] {
  display: none !important;
}

/* 审批人多选 */
.client-select--multiple .client-multi-trigger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  height: auto;
  padding: 6px 32px 6px 10px;
}

.client-multi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 1 auto;
  max-width: 100%;
}

.client-multi-tags:not(:empty) + .client-multi-placeholder {
  display: none;
}

.client-multi-placeholder {
  flex: 1;
  min-width: 0;
  color: var(--text-mid);
  font-size: 14px;
  text-align: left;
}

.client-multi-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(91, 121, 209, 0.12);
  color: var(--primary);
  font-size: 13px;
  line-height: 1.4;
}

.client-multi-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-multi-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #c5cdd8;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}

.client-multi-option.is-checked .client-multi-check {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M4.5 9.2 1.8 6.5l1-1 1.7 1.7 4.7-4.7 1 1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.client-multi-option.is-checked {
  background: rgba(91, 121, 209, 0.08);
  color: var(--primary);
}

.client-select--multiple .client-select-menu {
  max-height: 180px;
}

.client-select-option {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.client-select-option:hover:not(.is-disabled):not(.is-selected) {
  background: rgba(91, 121, 209, 0.08);
  color: var(--primary);
}

.client-select-option.is-selected {
  background: var(--primary);
  color: #fff;
}

.client-select-option.is-disabled {
  color: var(--text-mid);
  cursor: default;
}

/* 弹窗内上传按钮（窄） */
.client-dialog .modal-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: 38px;
  padding: 0 18px;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.client-dialog .modal-upload-btn:hover {
  border-color: #cfd6e4;
  background: #fafbfd;
  box-shadow: 0 2px 8px rgba(26, 34, 51, 0.06);
}

.client-dialog .upload-file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.client-dialog .upload-file-input {
  display: none;
}

.client-dialog .upload-file-name {
  min-width: 0;
  max-width: 260px;
  color: var(--text-mid);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 弹窗底部按钮统一：主操作为品牌蓝 */
.client-dialog > .modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 18px;
}

.client-dialog > .modal-footer .btn {
  min-width: 88px;
  height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.client-dialog > .modal-footer .btn:not(.btn-primary-dark) {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-dark);
}

.client-dialog > .modal-footer .btn:not(.btn-primary-dark):hover {
  border-color: #cfd6e4;
  background: #fafbfd;
  box-shadow: 0 2px 8px rgba(26, 34, 51, 0.06);
}

.client-dialog > .modal-footer .btn.btn-primary-dark,
.client-dialog > .modal-footer .btn.btn-confirm-dark {
  border-color: transparent;
  background: linear-gradient(180deg, #7893e0 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 121, 209, 0.32);
}

.client-dialog > .modal-footer .btn.btn-primary-dark:hover,
.client-dialog > .modal-footer .btn.btn-confirm-dark:hover {
  background: linear-gradient(180deg, #6b88dc 0%, var(--primary-hover) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(91, 121, 209, 0.38);
}

.access-detail-footer .btn.btn-primary-dark {
  min-width: 88px;
  height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  border-color: transparent;
  background: linear-gradient(180deg, #7893e0 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 121, 209, 0.32);
}

/* —— 设置弹窗 —— */
.modal-dialog.settings-dialog {
  max-width: 720px;
}

.settings-dialog {
  width: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.settings-body {
  display: flex;
  flex: 1;
  min-height: 340px;
}

.settings-tabs {
  width: var(--sub-w);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
}

.settings-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  margin-bottom: 4px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.settings-tab:hover {
  background: rgba(255, 255, 255, 0.85);
}

.settings-tab.on {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.settings-panels {
  flex: 1;
  min-width: 0;
  background: #fbfcfe;
}

.settings-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  padding: 20px 28px 16px;
  min-height: 340px;
}

.settings-panel.on {
  display: flex;
}

.settings-integration-head strong {
  color: var(--text-dark);
  font-size: 15px;
}

.settings-integration-head p {
  margin: 6px 0 14px;
  color: var(--text-mid);
  font-size: 12px;
  line-height: 1.5;
}

.settings-integration-list {
  display: grid;
  gap: 10px;
}

.settings-integration-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #e0e6f0;
  border-radius: 8px;
  background: #fff;
}

.settings-integration-card > div {
  min-width: 0;
}

.settings-integration-card strong,
.settings-integration-card p {
  display: block;
}

.settings-integration-card strong {
  color: #35445c;
  font-size: 13px;
}

.settings-integration-card p {
  margin: 5px 0 0;
  color: #8793a5;
  font-size: 11px;
  line-height: 1.45;
}

.settings-integration-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 4px;
  color: #8b6c33;
  background: #faf3e6;
  font-size: 11px;
}

.settings-integration-status.is-ready {
  color: #367c5d;
  background: #eaf7ef;
}

.settings-integration-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 13px 0 0;
  border-top: 1px solid #e7ebf2;
}

.settings-integration-note p {
  margin: 0;
  color: #7d899a;
  font-size: 11px;
  line-height: 1.5;
}

.settings-integration-note .btn {
  flex: 0 0 auto;
  text-decoration: none;
}

.settings-panel--update p {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

.settings-panel--update .update-note {
  flex: 1;
  min-height: 120px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  resize: none;
  margin: 8px 0 16px;
  color: var(--text-mid);
  background: var(--bg-panel);
  box-shadow: 0 1px 3px rgba(26, 34, 51, 0.04);
}

.settings-panel--update .update-note:focus {
  outline: none;
  border-color: rgba(91, 121, 209, 0.45);
  box-shadow: 0 0 0 3px rgba(91, 121, 209, 0.1);
}

.settings-panel-footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
  gap: 10px;
}

.office-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.office-field-row label {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

.office-field-row label.req::before {
  content: "*";
  color: var(--danger);
  margin-right: 4px;
}

.office-field-row input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 14px;
  background: var(--bg-panel);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.office-field-row input:focus {
  outline: none;
  border-color: rgba(91, 121, 209, 0.45);
  box-shadow: 0 0 0 3px rgba(91, 121, 209, 0.1);
}

.office-field-row .btn-browse {
  flex-shrink: 0;
}

/* 办公目录确认 */
.confirm-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.confirm-warn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(245, 166, 35, 0.15);
  color: #d48806;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirm-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.confirm-text {
  flex: 1;
  min-width: 0;
}

.confirm-text p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* —— 升级弹窗 —— */
.modal-dialog.upgrade-dialog {
  max-width: 480px;
}

.upgrade-dialog > .modal-head {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  min-height: auto;
  line-height: 1.3;
}

.upgrade-dialog > .modal-head button {
  width: 24px;
  height: 24px;
  font-size: 15px;
  border-radius: 6px;
}

.upgrade-body {
  padding: 14px 20px 18px;
}

.upgrade-app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.upgrade-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #6b88dc 0%, var(--primary) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91, 121, 209, 0.22);
}

.upgrade-app-meta h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
  line-height: 1.3;
}

.upgrade-app-meta p {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.3;
}

.upgrade-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 12px;
}

.upgrade-status {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.5;
}

.upgrade-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upgrade-bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: #e8ecf4;
  overflow: hidden;
}

.upgrade-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #7c94e0);
  transition: width 0.15s ease-out;
}

.upgrade-percent {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  min-width: 40px;
  text-align: right;
}

.upgrade-success-msg {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.55;
  margin-bottom: 20px;
}

.upgrade-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.upgrade-actions .btn-outline {
  border-radius: 999px;
  padding: 0 20px;
  height: 36px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
}

.upgrade-actions .btn-outline:hover {
  border-color: #cfd6e4;
  box-shadow: 0 2px 8px rgba(26, 34, 51, 0.06);
}

/* —— 文件迁移弹窗 —— */
.migrate-dialog > .modal-head {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.migrate-dialog > .modal-head .tb-btn-win {
  width: 28px;
  height: 24px;
  flex-shrink: 0;
}

.migrate-body {
  padding: 20px 24px 24px;
  min-height: 96px;
}

.migrate-status {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.5;
  min-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-dialog--pwd {
  max-width: 480px;
}

.pwd-field {
  margin-bottom: 18px;
}

.pwd-field label {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.pwd-field .input-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.pwd-field .input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 121, 209, 0.1);
}

.pwd-field .input-wrap input {
  width: 100%;
  height: 40px;
  border: none;
  outline: none;
  padding: 0 44px 0 12px;
  font-size: 14px;
  border-radius: 8px;
}

.pwd-field .toggle-pwd {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 40px;
  border: none;
  background: none;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwd-field .toggle-pwd svg {
  width: 18px;
  height: 18px;
}

.rail-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 2px 2px;
  border-radius: 10px;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  border-left: none;
}

.rail-item:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-dark);
}

.rail-item.active {
  background: var(--sidebar-active);
  color: var(--primary);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(91, 121, 209, 0.12);
}

.rail-item .sym {
  font-size: 16px;
  line-height: 1;
  width: 20px;
  text-align: center;
  opacity: 0.92;
}

.rail:not(.rail--blue) {
  gap: 0;
}

.rail:not(.rail--blue) .rail-section {
  margin: 0 0 10px;
}

.rail:not(.rail--blue) .rail-section-label {
  display: block;
  padding: 0 10px 5px;
  color: #98a4b6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rail:not(.rail--blue) .rail-section .rail-item {
  min-height: 34px;
  margin: 1px 2px;
  padding: 7px 9px;
  border-radius: 6px;
}

.rail:not(.rail--blue) .rail-section .rail-item.active {
  box-shadow: inset 3px 0 0 #5b79d1, inset 0 0 0 1px rgba(91, 121, 209, 0.1);
}

/* —— 同步盘登录后布局 v2：蓝色侧栏 + 顶栏工具区 —— */
body.client-body--app {
  padding: 20px 16px 32px;
  background-color: var(--page-bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 10% -10%, rgba(91, 121, 209, 0.09), transparent 55%),
    radial-gradient(ellipse 700px 400px at 100% 0%, rgba(91, 121, 209, 0.06), transparent 50%);
}

.app-frame--v2 {
  max-width: 1280px;
  width: 100%;
  height: calc(100vh - 52px);
  min-height: calc(100vh - 52px);
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(26, 34, 51, 0.04),
    0 24px 64px rgba(44, 62, 80, 0.1);
  overflow: hidden;
}

.app-frame--v2 .app-main {
  height: 100%;
  min-height: 0;
}

.rail--blue {
  --rail-blue: var(--primary);
  --rail-blue-dark: var(--primary-hover);
  width: 200px;
  padding: 0;
  gap: 0;
  background: var(--rail-blue);
  border-right: none;
  align-items: stretch;
}

.rail--blue .rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 28px;
  flex-shrink: 0;
}

.rail--blue .rail-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: lowercase;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.rail--blue .rail-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.4;
}

.rail--blue .rail-nav {
  display: flex;
  flex-direction: column;
  padding: 56px 10px 16px;
  gap: 4px;
  min-height: 0;
  overflow-y: auto;
}

.rail--blue .rail-section {
  margin: 0 0 12px;
}

.rail--blue .rail-section-label {
  display: block;
  padding: 0 14px 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rail--blue .rail-item {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  line-height: 1.35;
  box-shadow: none;
}

.rail--blue .rail-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.rail--blue .rail-item.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}

.rail--blue .rail-item-ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.rail--blue .rail-item-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.rail-item-ico {
  width: 22px;
  height: 22px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.95;
}

.rail-item-ico--shield {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='M12 3l7 3v5c0 4.2-2.8 7.4-7 9-4.2-1.6-7-4.8-7-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.rail-item-ico--cloud {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='M7 18h11a4 4 0 0 0 .5-8 5.5 5.5 0 0 0-10.6-1.5A3.5 3.5 0 0 0 7 18z'/%3E%3C/svg%3E");
}

.rail-item-ico--transfer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='M7 7l-4 4 4 4M17 17l4-4-4-4M3 11h18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.rail-item-ico--stamp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h5' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='17' r='3'/%3E%3C/svg%3E");
}

.rail-item-ico--ai {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Ctext x='12' y='16' text-anchor='middle' fill='white' font-size='9' font-weight='700' font-family='sans-serif'%3EAI%3C/text%3E%3C/svg%3E");
}

.main-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}

.main-panel-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-panel-body > .content,
.main-panel-body > .content--asset,
.main-panel-body > .content--ai,
.main-panel-body > .content--approval {
  flex: 1;
  min-height: 0;
  background: #fff;
}

.content-topbar {
  flex-shrink: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.content-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-user-wrap {
  position: relative;
}

.topbar-user-trigger {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 50%;
}

.topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  display: block;
  position: relative;
  box-shadow: 0 2px 8px rgba(91, 121, 209, 0.35);
}

.topbar-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4.4 3.6-8 8-8s8 3.6 8 8'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.topbar-avatar--lg {
  width: 40px;
  height: 40px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topbar-avatar--lg::before {
  display: none;
}

.user-dropdown--topbar {
  top: calc(100% + 8px);
  right: 0;
  left: auto;
}

.topbar-btn {
  width: 36px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  border-radius: 6px;
}

.topbar-btn:hover {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.06);
}

.topbar-btn--close:hover {
  background: #e81123;
  color: #fff;
}

.topbar-btn--settings {
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a8' stroke-width='1.6'%3E%3Cpath d='M12 2l1.2 3.6L17 7l-3.6 1.2L12 12l-1.2-3.8L7 7l3.8-1.4z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.topbar-btn--settings:hover {
  background-color: rgba(0, 0, 0, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6578' stroke-width='1.6'%3E%3Cpath d='M12 2l1.2 3.6L17 7l-3.6 1.2L12 12l-1.2-3.8L7 7l3.8-1.4z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* 同步盘 v2 · 资产管控内容样式（布局与上一版一致） */
.app-frame--v2 .asset-idle-stat-row .stat-item .num,
.app-frame--v2 .asset-scan-stat-row .stat-item .num {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.app-frame--v2 .asset-idle-stat-row.is-disabled {
  cursor: default;
  pointer-events: none;
}

.app-frame--v2 .asset-idle-stat-row.stat-row--clickable {
  cursor: pointer;
  pointer-events: auto;
}

.app-frame--v2 .asset-idle-stat-row.stat-row--clickable:hover .stat-item {
  opacity: 0.85;
}

.app-frame--v2 .asset-monitor-screen {
  background: var(--primary);
}

.app-frame--v2 .asset-monitor-shield {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.app-frame--v2 .asset-start-btn {
  padding: 10px 56px;
  min-width: 140px;
  background: linear-gradient(180deg, #7893e0 0%, var(--primary) 100%);
  border: none;
  box-shadow: 0 4px 14px rgba(91, 121, 209, 0.32);
}

.app-frame--v2 .asset-start-btn:hover {
  background: linear-gradient(180deg, #6b88dc 0%, var(--primary-hover) 100%);
}

.app-frame--v2 .stat-ico {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  opacity: 0.45;
  font-size: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.app-frame--v2 .stat-ico--folder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b0b6c0'%3E%3Cpath d='M4 6h6l2 2h8v10H4z'/%3E%3C/svg%3E");
}

.app-frame--v2 .stat-ico--clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0b6c0' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.app-frame--v2 .stat-ico--hourglass {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0b6c0' stroke-width='1.8'%3E%3Cpath d='M6 4h12v4l-4 4 4 4v4H6v-4l4-4-4-4z'/%3E%3C/svg%3E");
}

/* 同步盘 v2 · 资产扫描页间距（元素散开） */
.app-frame--v2 .asset-idle-panel {
  padding: 56px 48px 64px;
}

.app-frame--v2 .asset-monitor-art {
  margin-bottom: 52px;
}

.app-frame--v2 .asset-idle-heading {
  margin: 0 0 20px;
}

.app-frame--v2 .asset-idle-desc {
  margin: 0 auto 36px;
  max-width: 480px;
  line-height: 1.65;
}

.app-frame--v2 .asset-idle-hint {
  margin: 0 auto 32px;
}

.app-frame--v2 .asset-idle-stat-row,
.app-frame--v2 .asset-scan-stat-row {
  gap: 56px;
  margin: 0 auto 36px;
}

.app-frame--v2 .asset-idle-stat-row .stat-item,
.app-frame--v2 .asset-scan-stat-row .stat-item {
  padding: 22px 36px;
  min-width: 148px;
}

.app-frame--v2 .stat-ico {
  margin-bottom: 16px;
}

.app-frame--v2 .asset-idle-stat-row .stat-item .sub,
.app-frame--v2 .asset-scan-stat-row .stat-item .sub {
  margin-top: 12px;
  line-height: 1.55;
}

.app-frame--v2 #assetIdleDefault .asset-start-btn {
  margin-top: 40px;
}

.app-frame--v2 .asset-scan-visual {
  margin-bottom: 52px;
}

.app-frame--v2 .asset-scan-heading {
  margin: 0 0 24px;
}

.app-frame--v2 .asset-scan-desc {
  margin: 0 0 32px;
}

.app-frame--v2 .asset-scan-progress-mini {
  margin: 0 auto 28px;
}

.app-frame--v2 .asset-scan-path-line {
  margin: 0 auto 40px;
}

.app-frame--v2 .asset-scan-stat-row {
  margin-bottom: 40px;
}

.app-frame--v2 #assetIdleScanning .asset-start-btn {
  margin-top: 36px;
}

/* 次级导航 */
.subnav {
  width: var(--sub-w);
  flex-shrink: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.subnav-header {
  padding: 14px 12px 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.subnav-header .biz-ico {
  font-size: 15px;
  opacity: 0.85;
}

.subnav-list {
  padding: 10px 8px;
  overflow: auto;
  flex: 1;
}

.subnav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dark);
  text-decoration: none;
  margin-bottom: 4px;
}

.subnav-link:hover {
  background: #f5f7fa;
}

.subnav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* 内容区 */
.content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fbfcfe;
}

.app-main > .content.content--ai {
  flex: 1;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
}

/* AI 内嵌视图：隐藏云盘子导航与原内容区，AI 面板占满右侧 */
.app-main.is-ai-active > .subnav,
.app-main.is-ai-active > .content:not(.content--ai),
.app-main.is-ai-active > [data-hidden-for-inline-ai] {
  display: none !important;
}

.app-main.is-ai-active > .content.content--ai {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  display: flex !important;
}

.content-header {
  flex-shrink: 0;
  padding: 20px 28px 12px;
  border-bottom: none;
}

.content-header .breadcrumb {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  min-height: 20px;
}

.content-header .breadcrumb .back {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}

.content-header .breadcrumb .back:hover {
  background: #f0f2f6;
  color: var(--primary);
}

.content-header .breadcrumb-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
}

.content-header .breadcrumb-sep {
  margin: 0 6px;
  color: var(--text-light);
  font-style: normal;
  font-weight: 400;
  user-select: none;
}

.content-header .breadcrumb-segment {
  color: var(--text-mid);
  font-weight: 400;
  white-space: nowrap;
}

.content-header .breadcrumb-segment.is-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.content-header .breadcrumb-segment.is-link:hover {
  color: var(--primary);
}

.content-header .breadcrumb-segment.is-current {
  color: var(--text-dark);
  font-weight: 600;
}

.content-header .breadcrumb-segment.is-ellipsis {
  color: var(--text-light);
  cursor: default;
}

.content-toolbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 8px 28px 20px;
  border-bottom: none;
}

.approval-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px 12px;
}

.approval-page-heading h1 {
  margin: 0;
  color: var(--text-dark);
  font-size: 24px;
  line-height: 1.25;
}

.approval-page-heading p {
  margin: 5px 0 0;
  color: var(--text-mid);
  font-size: 13px;
}

.toolbar-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
}

.toolbar-upload-icon {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.btn {
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-dark);
  font-weight: 500;
  transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

.btn:hover:not(.btn-confirm-dark):not(.btn-primary-dark) {
  border-color: #cfd6e4;
  box-shadow: 0 2px 8px rgba(26, 34, 51, 0.06);
}

/* 弹窗主按钮：默认深色，与 .btn:hover 区分 */
.btn.btn-confirm-dark {
  background: #2c2c2c;
  border-color: #2c2c2c;
  color: #fff;
  box-shadow: none;
}

.btn.btn-confirm-dark:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Web 主按钮（工具栏等场景） */
.btn-primary-dark {
  background: linear-gradient(180deg, #7893e0 0%, var(--primary) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 121, 209, 0.32);
}

.btn-primary-dark:hover {
  background: linear-gradient(180deg, #6b88dc 0%, var(--primary-hover) 100%);
  box-shadow: 0 6px 20px rgba(91, 121, 209, 0.38);
}

.btn-primary-dark:disabled,
.btn-primary-dark[disabled] {
  background: #c8ced8;
  border-color: transparent;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary-dark:disabled:hover,
.btn-primary-dark[disabled]:hover {
  background: #c8ced8;
  box-shadow: none;
}

.btn-blue {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(91, 121, 209, 0.28);
}

.btn-blue:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: none;
}

.icon-btn {
  width: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.search-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 6px 0 14px;
  height: 36px;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 1px 3px rgba(26, 34, 51, 0.04);
}

.search-wrap:focus-within {
  border-color: rgba(91, 121, 209, 0.45);
  box-shadow: 0 0 0 3px rgba(91, 121, 209, 0.1);
}

.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  min-width: 0;
  background: transparent;
}

.search-wrap input::placeholder {
  color: var(--text-light);
}

.search-wrap button {
  border: none;
  background: none;
  color: var(--text-mid);
  cursor: pointer;
  padding: 0 10px;
  font-size: 14px;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.view-toggle button {
  width: 36px;
  height: 34px;
  border: none;
  background: #fff;
  cursor: pointer;
  color: var(--text-mid);
  font-size: 13px;
}

.view-toggle button.on {
  background: var(--sidebar-active);
  color: var(--primary);
}

.scroll-area {
  flex: 1;
  overflow: auto;
  padding: 0 28px 28px;
}

/* 表格：网盘列表感 */
.table-data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26, 34, 51, 0.05);
  border: 1px solid var(--border);
}

.table-data thead th {
  text-align: left;
  padding: 12px 18px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fafbfd;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-data tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid #eff1f5;
  vertical-align: middle;
  color: var(--text-dark);
  white-space: nowrap;
}

.table-data tbody tr:last-child td {
  border-bottom: none;
}

.table-data tbody tr:hover td {
  background: #fafcff;
}

.file-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.file-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(145deg, #eef2ff, #dfe8ff);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-ico--folder {
  background: linear-gradient(145deg, #6b88dc 0%, var(--primary) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

/* 按文件格式显示图标（扩展名标签 + 类型色） */
.file-ico[data-label] {
  font-size: 0;
  line-height: 1;
}

.file-ico[data-label]::after {
  content: attr(data-label);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1;
  display: block;
  text-align: center;
}

.file-ico--doc,
.file-ico--docx {
  background: linear-gradient(145deg, #5b8fd6 0%, #2b579a 100%);
  color: #fff;
}

.file-ico--xls,
.file-ico--xlsx,
.file-ico--csv {
  background: linear-gradient(145deg, #45a86b 0%, #217346 100%);
  color: #fff;
}

.file-ico--ppt,
.file-ico--pptx {
  background: linear-gradient(145deg, #e87a4f 0%, #d24726 100%);
  color: #fff;
}

.file-ico--pdf {
  background: linear-gradient(145deg, #f06a5e 0%, #e74c3c 100%);
  color: #fff;
}

.file-ico--jpg,
.file-ico--jpeg,
.file-ico--png,
.file-ico--gif,
.file-ico--bmp,
.file-ico--webp {
  background: linear-gradient(145deg, #9b7fd4 0%, #7b5bb8 100%);
  color: #fff;
}

.file-ico--txt,
.file-ico--md {
  background: linear-gradient(145deg, #8b95a8 0%, #6b7588 100%);
  color: #fff;
}

.file-ico--zip,
.file-ico--rar,
.file-ico--7z {
  background: linear-gradient(145deg, #c9a227 0%, #a8841a 100%);
  color: #fff;
}

.file-ico--file {
  background: linear-gradient(145deg, #eef2ff, #dfe8ff);
  color: var(--primary);
}

.file-name-cell .link-folder {
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: none;
}

.file-name-cell .link-folder:hover {
  color: var(--primary);
  text-decoration: underline;
}

.table-data tbody tr.row-folder {
  cursor: pointer;
}

.table-data tbody tr.row-folder .link-folder {
  pointer-events: none;
}

.table-data tbody tr.is-cloud-nav-target td {
  background: rgba(22, 119, 255, 0.08);
}

.table-data tbody tr.is-cloud-nav-target td:first-child .file-name-cell {
  font-weight: 600;
}

/* 审批记录：表格滚动区 */
.scroll-area--approval {
  overflow-x: auto;
}

.approval-table-empty td {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-mid);
  font-size: 14px;
}

.table-data--approval {
  table-layout: fixed;
  width: 100%;
  min-width: 915px;
}

.table-data--approval thead th,
.table-data--approval tbody td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-data--approval thead th:nth-child(1),
.table-data--approval tbody td:nth-child(1) {
  width: 180px;
  max-width: 180px;
}

.table-data--approval thead th:nth-child(2),
.table-data--approval tbody td:nth-child(2) {
  width: 70px;
  max-width: 70px;
}

.table-data--approval thead th:nth-child(3),
.table-data--approval tbody td:nth-child(3) {
  width: 100px;
  max-width: 100px;
}

.table-data--approval thead th:nth-child(4),
.table-data--approval tbody td:nth-child(4) {
  width: 88px;
  max-width: 88px;
}

.table-data--approval thead th:nth-child(5),
.table-data--approval tbody td:nth-child(5) {
  width: 160px;
  max-width: 160px;
}

.table-data--approval thead th:nth-child(6),
.table-data--approval tbody td:nth-child(6) {
  width: 85px;
  max-width: 85px;
}

.table-data--approval thead th:nth-child(7),
.table-data--approval tbody td:nth-child(7) {
  width: 160px;
  max-width: 160px;
}

.table-data--approval thead th:nth-child(8),
.table-data--approval tbody td:nth-child(8) {
  width: 72px;
}

.table-data--approval td:first-child .file-name-cell {
  min-width: 0;
}

.table-data--approval td:first-child .file-name-cell > span:last-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

/* 审批详情弹窗 */
.modal-dialog.approval-dialog {
  max-width: 520px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

.modal-dialog.approval-dialog.approval-dialog--outgoing {
  max-width: 640px;
}

.approval-detail-body {
  min-height: 0;
  padding: 16px 24px 20px;
  overflow-y: auto;
}

.approval-dialog > .modal-head,
.approval-dialog > .modal-footer {
  flex-shrink: 0;
}

.approval-panel[hidden] {
  display: none !important;
}

/* 权限申请：单列明细 */
.approval-panel--permission .approval-detail-list,
.approval-panel--permission-detail .approval-detail-list {
  margin: 0;
}

.approval-panel--permission-detail .approval-out-divider,
.approval-panel--application .approval-out-divider,
.approval-panel--outgoing-apply .approval-out-divider {
  margin: 4px 0 16px;
}

.approval-panel--outgoing-apply .approval-detail-list {
  margin: 0;
}

#approvalOutAppResultBlock[hidden],
.approval-out-app-approvers-divider[hidden],
.approval-panel--outgoing-apply .approval-out-app-approvers[hidden] {
  display: none !important;
}

.approval-panel--outgoing-apply-detail .approval-out-access-row[hidden] {
  display: none !important;
}

.approval-reject-reason-row[hidden] {
  display: none !important;
}

/* 文件访问详情弹窗 */
.modal-dialog.access-detail-dialog {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(44, 62, 80, 0.18);
}

.access-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(180deg, #7893e0 0%, var(--primary) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.access-detail-head button {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.9;
}

.access-detail-head button:hover {
  opacity: 1;
}

.access-detail-body {
  padding: 20px 24px 8px;
}

.access-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(82, 196, 26, 0.12);
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.access-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.access-detail-meta {
  margin-bottom: 20px;
}

.access-detail-line {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dark);
}

.access-detail-line:last-child {
  margin-bottom: 0;
}

.access-detail-label {
  color: var(--text-mid);
}

.access-history-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.access-history-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 4px;
}

.access-history-timeline li {
  position: relative;
  padding: 0 0 18px 20px;
}

.access-history-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid #c5cdd8;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.access-history-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: #e5e8ef;
}

.access-history-time {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.45;
}

.access-history-empty {
  padding-left: 0 !important;
  color: var(--text-mid);
  font-size: 14px;
}

.access-history-empty::before,
.access-history-empty::after {
  display: none !important;
}

.access-detail-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--border);
  background: #fbfcfe;
}

/* 申请权限弹窗 */
.modal-dialog.apply-permission-dialog {
  max-width: 560px;
  overflow: visible;
}

.apply-permission-body {
  padding: 20px 28px 8px;
  overflow: visible;
}

.apply-perm-form-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  overflow: visible;
  position: relative;
}

.apply-perm-form-row .client-select.is-open {
  z-index: 40;
}

.apply-perm-form-row:last-child {
  margin-bottom: 8px;
}

.apply-perm-form-row > label {
  flex-shrink: 0;
  width: 112px;
  padding-top: 10px;
  margin-bottom: 0;
  text-align: right;
  font-weight: 500;
  color: var(--text-dark);
}

.apply-perm-form-row > label.req::before {
  content: "*";
  color: var(--danger);
  margin-right: 4px;
}

.apply-perm-form-row--file > label,
.apply-perm-form-row--reason > label {
  padding-top: 8px;
}

.apply-perm-file-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.apply-perm-file-name {
  font-size: 13px;
  color: var(--text-mid);
  word-break: break-all;
}

.apply-perm-form-row .client-select,
.apply-perm-form-row input[type="text"],
.apply-perm-form-row .apply-perm-datetime-wrap,
.apply-perm-form-row textarea {
  flex: 1;
  min-width: 0;
}

.apply-perm-datetime-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.apply-perm-datetime-placeholder {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font-size: 14px;
  color: var(--text-mid);
  pointer-events: none;
  line-height: 1;
}

.apply-perm-datetime-placeholder[hidden] {
  display: none !important;
}

.apply-perm-datetime-wrap .apply-perm-datetime {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding-right: 56px;
  position: relative;
  z-index: 0;
}

.apply-perm-form-row input.apply-perm-datetime {
  color-scheme: light;
}

/* 未选择时隐藏浏览器默认年月日占位，显示「请选择」 */
.apply-perm-datetime.is-empty {
  color: transparent;
}

.apply-perm-datetime.is-empty::-webkit-datetime-edit,
.apply-perm-datetime.is-empty::-webkit-datetime-edit-fields-wrapper,
.apply-perm-datetime.is-empty::-webkit-datetime-edit-year-field,
.apply-perm-datetime.is-empty::-webkit-datetime-edit-month-field,
.apply-perm-datetime.is-empty::-webkit-datetime-edit-day-field,
.apply-perm-datetime.is-empty::-webkit-datetime-edit-hour-field,
.apply-perm-datetime.is-empty::-webkit-datetime-edit-minute-field,
.apply-perm-datetime.is-empty::-webkit-datetime-edit-second-field,
.apply-perm-datetime.is-empty::-webkit-datetime-edit-text {
  color: transparent;
}

.apply-perm-datetime:not(.is-empty) {
  color: var(--text-dark);
}

.apply-perm-datetime-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-mid);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.apply-perm-datetime-clear:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-dark);
}

.apply-perm-datetime-clear[hidden] {
  display: none !important;
}

.apply-perm-form-row textarea {
  min-height: 100px;
}

.share-link-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-link-field input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8f9fb;
  color: var(--text-dark);
  font-size: 13px;
}

.share-link-field .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

#applyPermFieldsPermission[hidden],
#applyPermFieldsOutgoing[hidden] {
  display: none !important;
}

.approval-out-access-row .link {
  font-weight: 500;
}

.approval-approvers-section {
  padding-top: 4px;
}

.approval-approvers-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.approval-approver-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.approval-approver-name {
  font-size: 14px;
  color: var(--text-dark);
}

#approvalAppResultBlock[hidden],
.approval-approvers-divider[hidden],
.approval-panel--application .approval-approvers-section[hidden] {
  display: none !important;
}

.modal-footer #approvalAppRevoke {
  min-width: 96px;
}

.approval-detail-list--result .approval-detail-row:last-child {
  border-bottom: none;
}

/* 外发申请：双栏布局 */
.approval-out-file-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eff1f5;
  font-size: 14px;
}

.approval-out-file-row .approval-out-label {
  flex-shrink: 0;
  color: var(--text-mid);
  font-weight: 500;
}

.approval-out-file-row .link {
  font-weight: 500;
  word-break: break-all;
}

.approval-out-section {
  margin-bottom: 4px;
}

.approval-out-divider {
  border: none;
  border-top: 1px solid #eff1f5;
  margin: 16px 0;
}

.approval-out-result-block[hidden] {
  display: none !important;
}

.approval-out-result-block .approval-out-divider {
  margin-top: 4px;
}

.approval-out-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}

.approval-out-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.45;
  min-width: 0;
}

.approval-out-item--full {
  grid-column: 1 / -1;
}

.approval-out-label {
  color: var(--text-mid);
  font-weight: 500;
  font-size: 14px;
}

.approval-out-item > span:last-child {
  color: var(--text-dark);
  word-break: break-all;
}

.modal-footer.approval-detail-footer {
  margin-top: 0;
}

/* 审批拒绝备注 */
.modal-dialog.reject-remark-dialog {
  max-width: 480px;
}

.reject-remark-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.reject-remark-row > label {
  flex-shrink: 0;
  width: 88px;
  padding-top: 10px;
  margin-bottom: 0;
  font-weight: 500;
  color: var(--text-dark);
}

.reject-remark-row > label.req::before {
  content: "*";
  color: var(--danger);
  margin-right: 4px;
}

.reject-remark-row textarea {
  flex: 1;
  min-width: 0;
  min-height: 120px;
}

.reject-remark-row textarea::placeholder {
  color: var(--text-light);
}

.approval-detail-list {
  margin: 0;
}

.approval-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eff1f5;
  font-size: 14px;
  line-height: 1.5;
}

.approval-detail-row:last-child {
  border-bottom: none;
}

.approval-detail-row dt {
  flex-shrink: 0;
  width: 108px;
  color: var(--text-mid);
  font-weight: 500;
}

.approval-detail-row dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--text-dark);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.approval-detail-row dd .link {
  font-weight: 500;
}

.approval-detail-row dd .link.js-approval-file-preview {
  cursor: pointer;
}

.approval-out-file-row .link.js-approval-file-preview {
  cursor: pointer;
}

.modal-dialog.file-preview-dialog {
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
}

.file-preview-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}

.file-preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.file-preview-head .file-ico {
  flex-shrink: 0;
}

.file-preview-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  word-break: break-all;
}

.file-preview-canvas {
  flex: 1;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8f9fc;
  overflow: auto;
}

.file-preview-doc {
  padding: 28px 32px;
  background: #fff;
  min-height: 260px;
}

.file-preview-doc-line {
  height: 10px;
  border-radius: 4px;
  background: #e8ebf2;
  margin-bottom: 12px;
}

.file-preview-doc-line:nth-child(1) { width: 42%; }
.file-preview-doc-line:nth-child(2) { width: 88%; }
.file-preview-doc-line:nth-child(3) { width: 76%; }
.file-preview-doc-line:nth-child(4) { width: 92%; }
.file-preview-doc-line:nth-child(5) { width: 64%; }
.file-preview-doc-line:nth-child(6) { width: 80%; }

.file-preview-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 24px;
  background: linear-gradient(180deg, #eef1f7 0%, #f8f9fc 100%);
}

.file-preview-image-ph {
  width: min(100%, 420px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px dashed #c5cedd;
  background:
    linear-gradient(135deg, rgba(91, 121, 209, 0.08) 0%, rgba(91, 121, 209, 0.02) 100%),
    #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: 14px;
}

.file-preview-generic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  gap: 12px;
  color: var(--text-mid);
  font-size: 14px;
}

.file-preview-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-mid);
  text-align: center;
}

#approvalViewFooter[hidden] {
  display: none !important;
}

/* 审批详情 footer（client-dialog 内 modal-footer 已统一，此处补充 approval-detail-footer 类名） */
.approval-detail-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 24px 18px;
}

.approval-detail-footer .btn {
  min-width: 88px;
  height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.approval-detail-footer .btn:not(.btn-primary-dark) {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-dark);
}

.approval-detail-footer .btn.btn-primary-dark {
  border-color: transparent;
  background: linear-gradient(180deg, #7893e0 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 121, 209, 0.32);
}

.tag-pending { color: var(--text-mid); font-weight: 500; }
.tag-revoked { color: var(--text-mid); font-weight: 500; }
.tag-pass { color: var(--success); font-weight: 600; }
.tag-reject { color: var(--danger); font-weight: 600; }

/* 审批记录 · 列表布局 */
.content--approval {
  background: #fff;
  --approval-inset-x: 40px;
}

.content-toolbar--approval {
  padding-bottom: 0;
  padding-left: var(--approval-inset-x);
  padding-right: var(--approval-inset-x);
}

.content-toolbar--approval .tabs-bar .tab {
  font-size: 16px;
  padding: 10px 4px;
  margin-right: 20px;
}

.content-toolbar--approval .tabs-bar .tab.on {
  font-size: 16px;
  font-weight: 600;
}

.approval-filters {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 12px var(--approval-inset-x) 6px;
}

.approval-filters .client-select {
  flex: 0 0 auto;
  width: auto;
  min-width: 128px;
}

.approval-filters .client-select-trigger {
  height: 36px;
  padding: 0 32px 0 12px;
  font-size: 13px;
  border-radius: var(--radius);
}

.approval-filters .client-select-menu {
  z-index: 30;
}

.content--approval .scroll-area--approval {
  padding: 20px var(--approval-inset-x) 28px;
}

.approval-list {
  display: flex;
  flex-direction: column;
}

.approval-list-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.approval-list-item:first-child {
  padding-top: 4px;
}

.approval-list-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.approval-list-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.approval-list-item-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a2233;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-list-item-title .tag-pending,
.approval-list-item-title .tag-pass,
.approval-list-item-title .tag-reject,
.approval-list-item-title .tag-revoked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 52px;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.approval-list-item-title .tag-pending {
  color: #fff;
  background: #fa8c16;
}

.approval-list-item-title .tag-pass {
  color: #fff;
  background: var(--success);
}

.approval-list-item-title .tag-reject {
  color: #fff;
  background: var(--danger);
}

.approval-list-item-title .tag-revoked {
  color: var(--text-mid);
  background: #eef1f6;
}

.approval-list-item-head .link {
  flex-shrink: 0;
  font-size: 14px;
}

.approval-list-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 72px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}

.approval-list-empty {
  padding: 48px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-mid);
}

/* 我的申请：6 列表格 */
.table-data--application {
  min-width: 880px;
}

.table-data--application thead th:nth-child(1),
.table-data--application tbody td:nth-child(1) {
  width: 200px;
  max-width: 200px;
}

.table-data--application thead th:nth-child(2),
.table-data--application tbody td:nth-child(2) {
  width: 120px;
  max-width: 120px;
}

.table-data--application thead th:nth-child(3),
.table-data--application tbody td:nth-child(3) {
  width: 160px;
  max-width: 160px;
}

.table-data--application thead th:nth-child(4),
.table-data--application tbody td:nth-child(4) {
  width: 88px;
  max-width: 88px;
}

.table-data--application thead th:nth-child(5),
.table-data--application tbody td:nth-child(5) {
  width: 160px;
  max-width: 160px;
}

.table-data--application thead th:nth-child(6),
.table-data--application tbody td:nth-child(6) {
  width: 72px;
  max-width: 72px;
}

.tabs-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.tabs-bar .tab {
  padding: 8px 4px;
  margin-right: 12px;
  font-size: 14px;
  color: var(--text-mid);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
}

.tabs-bar .tab.on {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

/* 对话框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 34, 51, 0.35);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal-overlay.show {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 440px;
}

.modal-dialog:not(.client-dialog):not(.settings-dialog) {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(44, 62, 80, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.modal-dialog.confirm-dialog {
  max-width: 440px;
  width: min(92vw, 440px);
}

.modal-dialog.migrate-dialog {
  max-width: 460px;
  width: min(92vw, 460px);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 16px;
}

.modal-head button {
  border: none;
  background: #f4f6f9;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-mid);
  line-height: 1;
}

.modal-head button:hover {
  background: #e8ecf4;
}

.modal-body {
  padding: 22px 20px;
  font-size: 14px;
}

.modal-footer {
  padding: 12px 20px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
}

.req::before {
  content: "*";
  color: var(--danger);
  margin-right: 4px;
}

.fake-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px dashed #c5cdd8;
  border-radius: var(--radius);
  background: #fafbfd;
  cursor: default;
  font-size: 13px;
  color: var(--text-dark);
}

.form-row input[type="text"] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 14px;
  background: #fff;
}

.form-row input[type="text"]:disabled,
.form-row input.input-readonly,
.form-row input.input-readonly:disabled {
  background: #f0f2f6;
  color: var(--text-light);
  border-color: #e4e8ef;
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
  -webkit-text-fill-color: var(--text-light);
}

.form-row--readonly label {
  color: var(--text-mid);
}

/* 空状态 / 引导页 */
/* —— 资产管控 —— */
.content.content--asset {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.asset-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.asset-view[hidden] {
  display: none !important;
}

.asset-view--idle {
  position: relative;
  flex: 1;
  min-height: 0;
}

.asset-idle-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  text-align: center;
  background: #fff;
  box-sizing: border-box;
  overflow: auto;
}

.asset-idle-panel[hidden] {
  display: none !important;
}

.asset-idle-panel.center-hero {
  background: #fff;
}

.asset-idle-heading {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-dark);
}

.asset-idle-desc {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text-mid);
  max-width: 480px;
  line-height: 1.65;
}

.asset-idle-stat-row,
.asset-scan-stat-row {
  flex-wrap: nowrap;
  width: min(1000px, 98vw);
  gap: 40px;
  margin: 0 auto 12px;
  justify-content: center;
}

.asset-idle-stat-row .stat-item,
.asset-scan-stat-row .stat-item {
  flex: 0 0 auto;
  min-width: auto;
  padding: 16px 22px;
}

.asset-idle-stat-row .stat-item .num,
.asset-idle-stat-row .stat-item .sub,
.asset-scan-stat-row .stat-item .num,
.asset-scan-stat-row .stat-item .sub {
  white-space: nowrap;
  max-width: none;
}

.asset-idle-stat-row .stat-item .num--accent,
.asset-scan-stat-row .stat-item .num--accent {
  font-size: 18px;
}

.asset-idle-hint {
  margin: 0 auto 28px;
  font-size: 12px;
  color: var(--text-light);
}

#assetIdleDefault .asset-start-btn {
  margin-top: 4px;
}

.asset-monitor-art {
  position: relative;
  width: 220px;
  height: 168px;
  margin-bottom: 36px;
}

.asset-monitor-frame {
  width: 200px;
  height: 128px;
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(180deg, #e8ecf4 0%, #d5dce8 100%);
  border-radius: 14px 14px 4px 4px;
  box-shadow: 0 16px 40px rgba(44, 62, 80, 0.12);
  box-sizing: border-box;
}

.asset-monitor-screen {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(145deg, #f4f7fc 0%, #e8edf5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-monitor-shield {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5b79d1 0%, #7b96e0 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(91, 121, 209, 0.35);
}

.asset-monitor-stand {
  width: 72px;
  height: 10px;
  margin: 8px auto 0;
  background: #c5cedd;
  border-radius: 0 0 6px 6px;
}

.asset-start-btn {
  padding: 12px 48px;
  font-size: 15px;
  border-radius: 999px;
  min-width: 160px;
}

.stat-ico {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
  opacity: 0.55;
  line-height: 1;
}

.stat-item .num--accent {
  color: var(--primary);
  font-size: 20px;
}

.center-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  text-align: center;
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fc 100%);
}

.center-hero .hero-art {
  width: 128px;
  height: 108px;
  margin-bottom: 28px;
  background: linear-gradient(160deg, #5b79d1 0%, #8ea4eb 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(91, 121, 209, 0.28);
}

.center-hero h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.center-hero > p.description {
  font-size: 14px;
  color: var(--text-mid);
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.stat-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.stat-row--clickable {
  margin-left: auto;
  margin-right: auto;
  padding: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: calc(var(--radius) + 4px);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.stat-row--clickable:hover {
  background: rgba(91, 121, 209, 0.06);
}

.stat-row--clickable:hover .stat-item {
  border-color: rgba(91, 121, 209, 0.35);
  box-shadow: 0 8px 24px rgba(91, 121, 209, 0.1);
}

.stat-row--clickable:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.stat-row--clickable.is-disabled,
.stat-row--clickable:disabled {
  cursor: default;
  opacity: 0.55;
}

.stat-row--clickable.is-disabled:hover,
.stat-row--clickable:disabled:hover {
  background: transparent;
}

.stat-row--clickable.is-disabled:hover .stat-item,
.stat-row--clickable:disabled:hover .stat-item {
  border-color: var(--border);
  box-shadow: 0 4px 16px rgba(26, 34, 51, 0.04);
}

.stat-item {
  display: block;
  text-align: center;
  min-width: 120px;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(26, 34, 51, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stat-item .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-item .sub {
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 8px;
  max-width: 180px;
  line-height: 1.45;
}

.scan-banner {
  flex-shrink: 0;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(90deg, #f8faff 0%, #fff 100%);
}

.scan-banner .shield {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.scan-banner-body {
  flex: 1;
  min-width: 0;
}

.scan-banner h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.scan-banner p {
  font-size: 13px;
  color: var(--text-mid);
  word-break: break-all;
}

.scan-path {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  color: var(--text-dark);
}

.scan-banner-icon {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-radar {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid rgba(91, 121, 209, 0.25);
  background: var(--primary-light);
}

.scan-banner-icon--pulse .scan-radar {
  animation: asset-radar-pulse 1.6s ease-in-out infinite;
}

.scan-shield-mark {
  position: relative;
  z-index: 1;
  font-size: 22px;
}

@keyframes asset-radar-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.75;
  }
}

.scan-progress {
  height: 8px;
  background: #e8ecf4;
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}

.scan-progress__bar,
.scan-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, #7b96e0 50%, #9daff0 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  transition: width 0.12s ease-out;
  animation: scan-bar-shimmer 1.4s linear infinite;
}

@keyframes scan-bar-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.asset-scan-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: 14px;
  background: #fafbfc;
}

.asset-done-top {
  flex-shrink: 0;
  padding: 16px 24px 0;
}

.asset-back-btn {
  border: none;
  background: transparent;
  font-size: 22px;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
}

.asset-back-btn:hover {
  color: var(--text-dark);
  background: #f0f2f6;
}

.asset-done-banner {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 28px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.scan-done-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef3ff 0%, #dce6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 121, 209, 0.15);
}

.scan-done-shield {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5b79d1 0%, #7b96e0 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-done-text {
  flex: 1;
  min-width: 0;
}

.asset-done-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.asset-done-title em {
  font-style: normal;
  color: var(--primary);
  font-weight: 700;
}

#assetDoneCompareText.is-added em {
  color: #0f766e;
}

#assetDoneCompareText.is-removed em {
  color: #dc2626;
}

#assetDoneCompareText.is-even {
  color: var(--text-mid);
}

.asset-done-meta {
  font-size: 13px;
  color: var(--text-mid);
}

.asset-done-actions {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-outline-primary {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--primary-light);
}

.asset-file-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.asset-file-table .tree-row td {
  background: #fafafa;
  font-weight: 600;
  border-bottom: 1px solid #f0f2f6;
}

.asset-file-table .tree-name {
  font-weight: 600;
}

.file-ico--pc,
.file-ico--drive {
  width: 28px;
  height: 28px;
  font-size: 14px;
  background: #eef2f8;
  border-radius: 6px;
}

.asset-row-actions {
  white-space: nowrap;
}

.asset-row-actions .link {
  margin-right: 8px;
}

.asset-perm-checklist-wrap {
  flex: 1;
  min-width: 0;
}

.asset-perm-checklist {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}

.asset-perm-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin: 0;
  color: #8a94a6;
  cursor: default;
  user-select: none;
}

.asset-perm-check-item span {
  font-size: 14px;
  line-height: 1.4;
}

.asset-perm-check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #b0b8c8;
  cursor: not-allowed;
  opacity: 0.55;
}

.asset-perm-check-item input[type="checkbox"]:checked {
  opacity: 0.72;
}

.link-danger {
  color: #e53935 !important;
}

.link-danger:hover {
  color: #c62828 !important;
}

.perm-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.perm-pills span {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.perm-pills .p-view { background: rgba(91, 121, 209, 0.12); color: var(--primary); }
.perm-pills .p-edit { background: rgba(52, 168, 83, 0.12); color: var(--success); }
.perm-pills .p-dec { background: rgba(114, 46, 209, 0.1); color: #722ed1; }

.perm-pills span.is-off {
  background: #f0f2f5 !important;
  color: #b8bec8 !important;
}

.asset-view--idle.is-scanning #assetIdleDefault {
  display: none !important;
}

.asset-view--idle:not(.is-scanning) #assetIdleScanning {
  display: none !important;
}

.asset-scan-heading {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-dark);
}

.asset-scan-heading .num--accent {
  font-size: inherit;
  font-weight: inherit;
}

.asset-scan-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-mid);
  max-width: 420px;
  line-height: 1.6;
}

.asset-scan-progress-mini {
  width: min(420px, 88vw);
  height: 8px;
  margin: 0 auto 16px;
  background: #e8ecf4;
  border-radius: 4px;
  overflow: hidden;
}

.asset-scan-path-line {
  margin: 0 auto 28px;
  font-size: 13px;
  color: var(--text-mid);
  max-width: 520px;
  line-height: 1.5;
  word-break: break-all;
}

.asset-scan-stat-row {
  margin-bottom: 32px;
}

#assetIdleScanning .asset-start-btn {
  margin-top: 4px;
}

.asset-scan-visual {
  position: relative;
  width: 220px;
  height: 140px;
  margin: 0 auto 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4f7fc 0%, #e8edf5 100%);
  box-shadow: 0 16px 40px rgba(44, 62, 80, 0.08);
}

.asset-scan-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--primary);
  border-style: solid;
}

.asset-scan-corner--tl {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
  border-radius: 4px 0 0 0;
}

.asset-scan-corner--tr {
  top: 0;
  right: 0;
  border-width: 3px 3px 0 0;
  border-radius: 0 4px 0 0;
}

.asset-scan-corner--bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 4px;
}

.asset-scan-corner--br {
  bottom: 0;
  right: 0;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 4px 0;
}

.asset-scan-shield {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5b79d1 0%, #7b96e0 100%);
  color: #fff;
  font-size: 26px;
  line-height: 56px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(91, 121, 209, 0.35);
  z-index: 1;
}

.asset-scan-beam {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 3px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
  box-shadow: 0 0 8px rgba(91, 121, 209, 0.45);
  z-index: 2;
  animation: asset-scan-beam 2.2s ease-in-out infinite;
}

@keyframes asset-scan-beam {
  0%,
  100% {
    transform: translateY(-18px);
    opacity: 0.35;
  }
  50% {
    transform: translateY(18px);
    opacity: 1;
  }
}

.asset-scan-toolbar {
  flex-shrink: 0;
  padding: 12px 20px 0;
}

.asset-scan-results {
  flex: 1;
  min-height: 0;
}

.asset-file-table tr.asset-file-row--new td {
  animation: asset-row-in 0.35s ease-out;
}

@keyframes asset-row-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tree-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tree-toggle {
  width: 18px;
  text-align: center;
  color: var(--text-mid);
  font-size: 10px;
}

/* —— 登录页（纯登录窗 + 底部任务栏） —— */
body.client-body--login {
  padding: 20px 16px 60px;
}

body.client-body--login .content {
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #dde5f0 0%, #e8edf5 42%, #eef2f8 100%);
}

body.client-body--login .login-form-panel {
  flex: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26, 34, 51, 0.1);
}

.login-layout {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.login-visual {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 28px;
  background: linear-gradient(165deg, #dde5f0 0%, #e8edf5 42%, #eef2f8 100%);
  border-right: 1px solid var(--border);
}

.login-visual .brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.login-visual .logo-k {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #f7e29a, #c9a227 45%, #1a1a1a 46%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #2c2c2c;
}

.login-visual .brand-text h1 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.login-visual .brand-text p {
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 4px;
}

.login-form-panel {
  flex: 0 0 420px;
  width: 420px;
  max-width: 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
  background: var(--bg-panel);
}

.login-form-panel .field {
  margin-bottom: 20px;
}

.login-form-panel .field label {
  display: block;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.login-form-panel .input-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form-panel .input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 121, 209, 0.12);
}

.login-form-panel .input-wrap input {
  width: 100%;
  height: 44px;
  border: none;
  outline: none;
  padding: 0 44px 0 14px;
  font-size: 14px;
  border-radius: 8px;
  background: transparent;
}

.login-form-panel .input-wrap input::placeholder {
  color: var(--text-light);
}

.login-form-panel .toggle-pwd {
  position: absolute;
  right: 0;
  top: 0;
  height: 44px;
  width: 44px;
  border: none;
  background: none;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form-panel .toggle-pwd:hover {
  color: var(--primary);
}

.login-form-panel .toggle-pwd svg {
  width: 18px;
  height: 18px;
}

.login-form-panel .forgot {
  margin-top: -6px;
  margin-bottom: 24px;
}

.login-form-panel .forgot a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
}

.login-form-panel .forgot a:hover {
  color: var(--primary);
}

.login-form-panel .btn-login {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: #e5e7eb;
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.login-form-panel .btn-login.ready {
  background: linear-gradient(180deg, #7390e6 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(91, 121, 209, 0.28);
}

.login-form-panel .btn-login.ready:hover {
  background: linear-gradient(180deg, #6b88dc 0%, var(--primary-hover) 100%);
}

@media (max-width: 960px) {
  .login-layout {
    flex-direction: column;
    min-height: auto;
  }
  .login-form-panel {
    flex: none;
    width: 100%;
    max-width: none;
    padding: 28px 24px 36px;
  }
  .login-visual {
    min-height: 120px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* —— AI 助理 —— */
.content.content--ai {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.ai-sidebar {
  flex: 0 0 240px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  width: 240px;
  min-height: 100%;
  height: auto;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  background: #f3f4f6;
  box-sizing: border-box;
}

.ai-new-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(91, 121, 209, 0.28);
  border-radius: 10px;
  background: rgba(91, 121, 209, 0.1);
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ai-new-chat-btn:hover {
  background: rgba(91, 121, 209, 0.16);
  border-color: rgba(91, 121, 209, 0.4);
}

.ai-new-chat-icon {
  font-size: 14px;
  line-height: 1;
}

.ai-sidebar-section {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 16px;
  overflow: auto;
}

.ai-sidebar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
  padding: 0 4px;
}

.ai-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-history-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 2px;
  border-radius: 10px;
  transition: background 0.15s;
}

.ai-history-row:hover {
  background: rgba(255, 255, 255, 0.55);
}

.ai-history-row.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(26, 34, 51, 0.06);
}

.ai-history-item {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: left;
  padding: 9px 4px 9px 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1.4;
}

.ai-history-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8eaef;
  color: var(--text-mid);
}

.ai-history-row.is-active .ai-history-ico {
  background: #eef1f6;
  color: var(--text-mid);
}

.ai-history-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-history-more {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.ai-history-row:hover .ai-history-more,
.ai-history-row.is-active .ai-history-more {
  opacity: 1;
}

.ai-history-more:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-mid);
}

.ai-history-actions {
  position: absolute;
  top: calc(100% + 4px);
  right: 4px;
  z-index: 60;
  min-width: 120px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(26, 34, 51, 0.12);
}

.ai-history-actions[hidden] {
  display: none !important;
}

.ai-history-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.ai-history-action:hover {
  background: #f5f7fb;
}

.ai-history-action--danger {
  color: var(--danger);
}

.ai-history-action--danger:hover {
  background: #fef7f6;
}

.ai-history-action-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.ai-main {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
}

.ai-main-body {
  flex: 1 1 auto;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.ai-preview-panel {
  flex: 0 0 380px;
  width: 380px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--border);
  background: #fff;
  box-sizing: border-box;
}

.ai-preview-panel[hidden] {
  display: none !important;
}

.ai-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.ai-preview-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-preview-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-mid);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ai-preview-close:hover {
  background: #f0f2f5;
  color: var(--text-dark);
}

.ai-preview-path {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-light);
  background: #f7f8fb;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-preview-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.ai-preview-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}

.ai-preview-foot .btn {
  flex-shrink: 0;
}

.ai-workspace,
.ai-chat-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
  box-sizing: border-box;
}

.ai-workspace.is-hidden,
.ai-workspace[hidden],
.ai-chat-view[hidden]:not(.is-active) {
  display: none !important;
}

.ai-chat-view.is-active {
  display: flex !important;
}

.ai-chat-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 28px 48px;
  min-height: 0;
}

.ai-msg {
  display: flex;
  margin-bottom: 20px;
  max-width: 720px;
}

.ai-msg--user {
  justify-content: flex-end;
  margin-left: auto;
}

.ai-msg-user-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 320px;
}

.ai-user-uploads {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}

.ai-user-upload-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0f2f5;
  box-sizing: border-box;
}

.ai-user-upload-ico {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.ai-user-upload-ico--xlsx,
.ai-user-upload-ico--xls {
  background-color: #e8f5e9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' fill='%23217a33'/%3E%3Ctext x='12' y='16' text-anchor='middle' fill='white' font-size='10' font-weight='bold' font-family='Arial'%3EX%3C/text%3E%3C/svg%3E");
}

.ai-user-upload-ico--pdf {
  background-color: #fce8e6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' fill='%23ea4335'/%3E%3Ctext x='12' y='15' text-anchor='middle' fill='white' font-size='7' font-weight='bold' font-family='Arial'%3EPDF%3C/text%3E%3C/svg%3E");
}

.ai-user-upload-ico--doc,
.ai-user-upload-ico--docx {
  background-color: #e8eefc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' fill='%232b579a'/%3E%3Ctext x='12' y='15' text-anchor='middle' fill='white' font-size='7' font-weight='bold' font-family='Arial'%3EDOC%3C/text%3E%3C/svg%3E");
}

.ai-user-upload-ico--file {
  background-color: #eef1f6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6578' stroke-width='1.8'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
  background-size: 20px;
}

.ai-user-upload-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-user-upload-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-user-upload-type {
  font-size: 12px;
  color: var(--text-light);
}

.ai-msg-bubble--user-plain {
  padding: 10px 16px;
  border-radius: 12px;
  background: #f0f2f5;
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.5;
}

.ai-msg--assistant {
  justify-content: flex-start;
}

.ai-msg-bubble {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dark);
}

.ai-msg--user .ai-msg-bubble:not(.ai-msg-bubble--user-plain) {
  background: linear-gradient(135deg, #7893e0 0%, var(--primary) 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ai-user-biz-tag {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ai-msg-bubble--user-plain .ai-user-biz-tag {
  background: rgba(91, 121, 209, 0.18);
  color: var(--primary);
}

.ai-msg--assistant .ai-msg-bubble {
  background: #f5f7fb;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  max-width: 640px;
}

.ai-msg--assistant .ai-msg-bubble strong {
  color: var(--text-dark);
  font-weight: 600;
}

.ai-cite-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: super;
  font-size: 10px;
  line-height: 1;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin: 0 1px 0 2px;
  border: none;
  border-radius: 4px;
  background: rgba(91, 121, 209, 0.15);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.ai-cite-mark:hover,
.ai-cite-mark:focus-visible {
  background: rgba(91, 121, 209, 0.28);
  outline: none;
}

.ai-cite-mark-num {
  pointer-events: none;
}

.ai-cite-mark-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(30, 35, 50, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 2;
}

.ai-cite-mark-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(30, 35, 50, 0.92);
}

.ai-cite-mark:hover .ai-cite-mark-tip,
.ai-cite-mark:focus-visible .ai-cite-mark-tip {
  opacity: 1;
  visibility: visible;
}

.ai-ref-files {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(91, 121, 209, 0.22);
}

.ai-ref-files-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ai-file-card-ref-badge {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(91, 121, 209, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-file-list,
.ai-approval-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.ai-file-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-file-cards-wrap {
  margin-top: 12px;
}

.ai-file-card.is-in-context .ai-file-card-action[data-action="ask"] {
  font-weight: 600;
}

.ai-file-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ai-file-card.is-in-context {
  border-color: rgba(91, 121, 209, 0.45);
  box-shadow: 0 0 0 1px rgba(91, 121, 209, 0.12);
}

.ai-file-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px 8px;
}

.ai-file-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ai-file-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 100%;
}

.ai-file-card-biz-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.ai-file-card-biz-tag {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1.4;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0f2f8;
  color: var(--text-mid);
  border: 1px solid rgba(91, 121, 209, 0.12);
}

.ai-file-card-biz-tag.is-matched {
  background: rgba(91, 121, 209, 0.14);
  color: var(--primary);
  border-color: rgba(91, 121, 209, 0.38);
  font-weight: 600;
}

.ai-file-card-name {
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}

.ai-file-card-name:hover {
  text-decoration: underline;
}

.ai-file-card-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fef3f2;
  color: var(--danger);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.ai-file-card-desc {
  flex: 1 1 100%;
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
}

.ai-file-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 8px;
  border-top: 1px solid #eef1f6;
  background: #fafbfc;
}

.ai-file-card-action {
  padding: 2px 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  line-height: 1.5;
  transition: color 0.15s;
}

.ai-file-card-action:hover {
  text-decoration: underline;
}

.ai-file-card-action + .ai-file-card-action::before {
  content: "|";
  margin-right: 8px;
  color: var(--border);
  text-decoration: none;
  pointer-events: none;
}

.ai-file-card-action + .ai-file-card-action {
  padding-left: 0;
}

.ai-file-list-hint {
  margin: 10px 0 6px;
  font-size: 12px;
  color: var(--text-light);
}

.ai-file-list-item {
  margin-bottom: 8px;
}

.ai-file-list-item:last-child {
  margin-bottom: 0;
}

.ai-file-select {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.ai-file-select-cb {
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--primary);
}

.ai-file-select-main {
  flex: 1 1 auto;
  min-width: 0;
}

.ai-context-files-wrap {
  margin-bottom: 10px;
}

.ai-context-files-label {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.ai-context-files-wrap[hidden] {
  display: none !important;
}

.ai-file-list li {
  margin-bottom: 8px;
}

.ai-file-list li:last-child {
  margin-bottom: 0;
}

.ai-file-link {
  display: inline;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.ai-file-link:hover {
  text-decoration: underline;
}

.ai-file-desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
}

.ai-approval-list li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dark);
}

.ai-approval-list li:last-child {
  margin-bottom: 0;
}

.ai-next-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.ai-next-actions-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
}

.ai-next-actions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-next-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(91, 121, 209, 0.28);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  line-height: 1.4;
}

.ai-next-action-btn:hover {
  background: rgba(91, 121, 209, 0.08);
  border-color: rgba(91, 121, 209, 0.45);
  box-shadow: 0 1px 4px rgba(91, 121, 209, 0.12);
}

.ai-next-action-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.ai-action-toast {
  position: fixed;
  bottom: 72px;
  left: 50%;
  z-index: 10000;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(26, 34, 51, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}

.ai-action-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ai-file-preview-doc {
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dark);
}

.ai-file-preview-doc h4 {
  margin: 0 0 12px;
  font-size: 16px;
}

.ai-file-preview-doc--sensitive {
  background: linear-gradient(180deg, #fff 0%, #fffaf9 100%);
}

.ai-file-preview-tag {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-light);
}

.ai-sensitive-warn {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ai-sensitive-warn-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fce8e6;
  color: var(--danger);
  font-size: 20px;
}

.ai-sensitive-warn-desc {
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 8px;
}

.ai-chat-composer {
  flex-shrink: 0;
  padding: 12px 32px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.ai-composer--inline {
  max-width: 720px;
  margin: 0 auto;
}

.ai-rename-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
}

.ai-rename-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.ai-workspace {
  align-items: center;
  justify-content: center;
  padding: 48px 40px 56px;
}

.ai-title {
  margin: 0 0 36px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  text-align: center;
}

.ai-title-brand {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ai-composer {
  width: 100%;
  max-width: 720px;
  padding: 16px 18px 12px;
  border: 1px solid #dce1e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.06);
  overflow: visible;
  position: relative;
}

.ai-composer-input {
  display: block;
  width: 100%;
  min-height: 72px;
  padding: 0;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  background: transparent;
}

.ai-composer-input::placeholder {
  color: var(--text-mid);
}

.ai-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  overflow: visible;
}

.ai-composer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ai-chip {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ai-chip:hover {
  border-color: #cfd6e4;
}

.ai-chip.is-on {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.ai-chip-label {
  padding: 6px 4px;
  font-size: 13px;
  color: var(--text-dark);
}

.ai-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.ai-icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.ai-send-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #e4e8ef;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: not-allowed;
  transition: background 0.15s, box-shadow 0.15s;
}

.ai-send-btn.is-active {
  background: linear-gradient(180deg, #7893e0 0%, var(--primary) 100%);
  box-shadow: 0 4px 12px rgba(91, 121, 209, 0.35);
  cursor: pointer;
}

.ai-send-btn.is-active:hover {
  box-shadow: 0 6px 16px rgba(91, 121, 209, 0.42);
}

.ai-upload-wrap {
  position: relative;
  flex-shrink: 0;
}

.ai-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f0f2f5;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s;
}

.ai-upload-btn:hover {
  background: #e4e8ef;
}

.ai-upload-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 200;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(26, 34, 51, 0.1);
}

.ai-upload-menu[hidden] {
  display: none !important;
}

.ai-upload-menu.is-open {
  display: block;
}

.ai-upload-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.ai-upload-menu-item:hover {
  background: #f5f7fb;
}

.ai-upload-menu-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
}

.ai-upload-menu-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-mid);
}

.ai-attached-zone {
  position: relative;
  margin-bottom: 10px;
}

.ai-attached-zone[hidden] {
  display: none !important;
}

.ai-attached-files {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ai-attached-zone.has-scroll-prev .ai-attached-files {
  padding-left: 32px;
}

.ai-attached-zone.has-scroll-next .ai-attached-files {
  padding-right: 32px;
}

.ai-attached-files::-webkit-scrollbar {
  display: none;
}

.ai-composer-upload-card {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 168px;
  min-width: 168px;
  padding: 8px 26px 8px 10px;
  border-radius: 10px;
  background: #f0f2f5;
  box-sizing: border-box;
}

.ai-composer-upload-card .ai-user-upload-ico {
  width: 28px;
  height: 28px;
}

.ai-composer-upload-card .ai-user-upload-name {
  font-size: 13px;
}

.ai-composer-upload-card .ai-user-upload-type {
  font-size: 11px;
}

.ai-attached-scroll-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 6px rgba(44, 62, 80, 0.14);
  color: var(--text-mid);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s, color 0.15s;
}

.ai-attached-scroll-prev {
  left: 2px;
}

.ai-attached-scroll-next {
  right: 2px;
}

.ai-attached-scroll-btn:hover {
  background: #fff;
  color: var(--text-dark);
}

.ai-attached-scroll-btn[hidden] {
  display: none !important;
}

.ai-composer-upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.ai-composer-upload-remove:hover {
  background: rgba(0, 0, 0, 0.72);
}

.ai-attached-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  font-size: 12px;
  color: var(--primary);
}

.ai-attached-chip button {
  border: none;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.ai-cloud-dialog {
  max-width: 600px;
}

.ai-cloud-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.ai-cloud-search {
  position: relative;
}

.ai-cloud-search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--text-light);
  pointer-events: none;
}

.ai-cloud-search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  box-sizing: border-box;
  outline: none;
}

.ai-cloud-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.ai-cloud-tabs {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.ai-cloud-tabs .tab {
  margin-right: 20px;
  margin-bottom: -1px;
}

.ai-cloud-tree-host {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
}

.ai-cloud-tree {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.ai-cloud-tree-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-cloud-tree-node {
  margin: 0;
}

.ai-cloud-tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding-right: 12px;
  box-sizing: border-box;
}

.ai-cloud-tree-toggle {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-mid);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.ai-cloud-tree-toggle--spacer {
  display: inline-block;
  cursor: default;
}

.ai-cloud-tree-folder-ico,
.ai-cloud-tree-file-ico {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
}

.ai-cloud-tree-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-cloud-tree-node--folder > .ai-cloud-tree-row {
  cursor: default;
}

.ai-cloud-tree-node--folder > .ai-cloud-tree-row:hover {
  background: rgba(91, 121, 209, 0.06);
}

.ai-cloud-tree-file {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.ai-cloud-tree-file input {
  flex-shrink: 0;
  accent-color: var(--primary);
}

.ai-cloud-tree-meta {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-light);
}

.ai-cloud-tree-empty {
  padding: 48px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

.ai-cloud-path {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  padding: 8px 10px;
  background: #f5f7fb;
  border-radius: 6px;
}

.ai-cloud-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.ai-cloud-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ai-cloud-file-item:hover {
  border-color: rgba(91, 121, 209, 0.35);
  background: #f8faff;
}

.ai-cloud-file-ico {
  font-size: 20px;
}

.ai-cloud-file-name {
  flex: 1 1 auto;
  font-size: 14px;
  color: var(--text-dark);
}

.ai-cloud-file-meta {
  font-size: 12px;
  color: var(--text-light);
}

/* —— 应用底部任务栏 · 桌面通知 —— */
.app-toast-host {
  position: absolute;
  right: 16px;
  bottom: 54px;
  z-index: 40;
  width: min(380px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.app-toast-host .desktop-toast {
  pointer-events: auto;
}

.app-taskbar {
  flex-shrink: 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 10px;
  background: linear-gradient(180deg, #f6f8fc 0%, #eceff5 100%);
  border-top: 1px solid #d8dde6;
  user-select: none;
}

.app-taskbar-apps {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-taskbar-app {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-taskbar-app:hover {
  background: rgba(255, 255, 255, 0.65);
}

.app-taskbar-app.is-active {
  background: rgba(255, 255, 255, 0.85);
}

.app-taskbar-app-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, #2d3a52 0%, #1a2233 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(26, 34, 51, 0.2);
}

.app-taskbar-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #1a2233;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.app-taskbar-badge[hidden] {
  display: none !important;
}

.app-taskbar-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--primary);
}

.app-taskbar-app:not(.is-active):not(.is-running) .app-taskbar-indicator {
  display: none;
}

.app-taskbar-app.is-running:not(.is-active) .app-taskbar-indicator {
  display: block;
  background: #6b7280;
  height: 2px;
  width: 14px;
  border-radius: 1px;
}

.app-taskbar-folder-ico {
  display: block;
  width: 26px;
  height: 22px;
  background: linear-gradient(180deg, #ffd666 0%, #f5a623 55%, #e8a317 100%);
  border-radius: 2px 3px 4px 4px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.app-taskbar-folder-ico::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 12px;
  height: 6px;
  background: #ffe58f;
  border-radius: 2px 3px 0 0;
}

.app-taskbar-tray {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-mid);
}

.app-taskbar-tray-ico {
  opacity: 0.75;
  font-size: 13px;
}

.app-taskbar-clock {
  text-align: right;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.app-taskbar-menu.tray-context-menu {
  position: fixed;
  z-index: 2100;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.desktop-toast--enter {
  animation: toast-slide-in 0.28s ease-out;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* —— 托盘演示页（独立示意） —— */
.tray-demo-body {
  padding: 0;
  min-height: 100vh;
  background: #c8cdd8;
}

.tray-demo-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(26, 34, 51, 0.06);
}

.tray-demo-back {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}

.tray-demo-back:hover {
  text-decoration: underline;
}

.tray-demo-bar-title {
  flex: 1;
  font-size: 14px;
  color: var(--text-mid);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.tray-demo-scene {
  position: relative;
  min-height: calc(100vh - 49px);
  padding: 48px 40px 60px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.tray-context-menu {
  flex-shrink: 0;
  width: 148px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #d8dde6;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(26, 34, 51, 0.18);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.tray-context-menu[hidden] {
  display: none !important;
}

.tray-menu-item {
  display: block;
  width: 100%;
  padding: 10px 18px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  font-family: inherit;
}

.tray-menu-item:hover {
  background: #f0f4fc;
  color: var(--primary);
}

.tray-demo-toasts {
  flex: 1;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: auto;
}

.desktop-toast {
  width: 100%;
  background: #fff;
  border: 1px solid #e0e4ec;
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(26, 34, 51, 0.14);
  overflow: hidden;
}

.desktop-toast.is-dismissed {
  display: none;
}

.desktop-toast-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
}

.desktop-toast-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5b79d1 0%, #7b96e0 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.desktop-toast-brand {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.desktop-toast-close {
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.desktop-toast-close:hover {
  color: var(--text-dark);
  background: #f0f2f6;
}

.desktop-toast-body {
  padding: 4px 14px 12px 52px;
}

.desktop-toast-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.desktop-toast-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
  margin: 0;
}

.desktop-toast-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0 14px 14px 52px;
}

.desktop-toast-foot--center {
  justify-content: center;
  padding-left: 14px;
}

.btn-toast {
  padding: 6px 18px;
  font-size: 13px;
  border-radius: 6px;
  min-width: 88px;
}

.btn-toast-secondary {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid #d0d5de;
  background: #fff;
  color: var(--text-dark);
  cursor: pointer;
  font-family: inherit;
}

.btn-toast-secondary:hover {
  background: #f5f7fa;
  border-color: #b8bec8;
}

/* —— 关于 / 检查更新 —— */
.modal-dialog.about-dialog,
.modal-dialog.check-update-dialog {
  max-width: 440px;
}

.about-body {
  padding: 20px 24px 8px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
}

.about-app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.about-version-line {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.about-check-link {
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.about-check-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.about-copyright {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
}

.check-update-body {
  padding: 16px 24px 8px;
}

.check-update-body .upgrade-app-row {
  margin-bottom: 14px;
}

.check-update-empty {
  text-align: center;
  padding: 24px 8px 28px;
  font-size: 14px;
  color: var(--text-mid);
}

.check-update-available-msg {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.check-update-notes {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 72px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 4px;
  background: #fafbfc;
}

/* —— 本地文件资源管理器窗口 —— */
.win-explorer {
  position: fixed;
  z-index: 1150;
  inset: 48px 24px 72px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  pointer-events: none;
}

.win-explorer[hidden] {
  display: none !important;
}

.win-explorer-inner {
  pointer-events: auto;
  width: min(1120px, 100%);
  height: 100%;
  max-height: 720px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #c8cdd8;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(26, 34, 51, 0.22);
  overflow: hidden;
  font-size: 13px;
  color: var(--text-dark);
}

.win-explorer-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 0 10px;
  background: #f3f4f6;
  border-bottom: 1px solid #e2e5eb;
  min-height: 38px;
}

.win-explorer-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.win-explorer-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px 8px 0 0;
  background: #fff;
  border: 1px solid #d8dde6;
  border-bottom: none;
  font-size: 12px;
  max-width: 160px;
  white-space: nowrap;
}

.win-explorer-tab.is-active {
  font-weight: 600;
}

.win-explorer-tab-ico {
  font-size: 12px;
}

.win-explorer-tab-add {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-mid);
}

.win-explorer-tab-add:hover {
  background: rgba(0, 0, 0, 0.06);
}

.win-explorer-winbtns {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.win-explorer-winbtns button {
  width: 40px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-dark);
  border-radius: 4px;
}

.win-explorer-winbtns button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.win-explorer-winbtns button:last-child:hover {
  background: #e81123;
  color: #fff;
}

.win-explorer-navrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid #eceef2;
  background: #fafbfc;
}

.win-explorer-navbtns {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.win-explorer-navbtns button {
  width: 32px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-mid);
}

.win-explorer-navbtns button:not(:disabled):hover {
  background: #eef1f6;
  border-color: #d8dde6;
}

.win-explorer-navbtns button:disabled {
  opacity: 0.35;
  cursor: default;
}

.win-explorer-address {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #d8dde6;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  color: var(--text-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-explorer-address i {
  font-style: normal;
  color: #b0b8c4;
}

.win-explorer-address strong {
  color: var(--text-dark);
  font-weight: 600;
}

.win-explorer-crumb {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--text-mid);
  cursor: pointer;
  white-space: nowrap;
}

.win-explorer-crumb:hover {
  color: var(--primary);
  text-decoration: underline;
}

.win-explorer-search {
  flex-shrink: 0;
  width: min(220px, 28vw);
}

.win-explorer-search input {
  width: 100%;
  height: 28px;
  padding: 0 10px 0 28px;
  border: 1px solid #d8dde6;
  border-radius: 4px;
  font-size: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b95a8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E") 8px center no-repeat;
}

.win-explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-bottom: 1px solid #eceef2;
  background: #fff;
  flex-wrap: wrap;
}

.win-explorer-toolbar button {
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-dark);
  font-family: inherit;
}

.win-explorer-toolbar button:hover {
  background: #f0f2f6;
  border-color: #e4e8ef;
}

.win-explorer-tb-primary {
  font-weight: 500;
}

.win-explorer-tb-sep {
  width: 1px;
  height: 20px;
  background: #e4e8ef;
  margin: 0 4px;
}

.win-explorer-tb-spacer {
  flex: 1;
}

.win-explorer-tb-detail.is-on {
  background: #e8eefc;
  border-color: #c5d4f5;
  color: var(--primary);
}

.win-explorer-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.win-explorer-sidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 8px 6px;
  border-right: 1px solid #eceef2;
  background: #fafbfc;
  overflow-y: auto;
}

.win-explorer-nav-label {
  font-size: 11px;
  color: var(--text-light);
  padding: 10px 10px 4px;
  margin: 0;
}

.win-explorer-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  font-size: 12px;
  color: var(--text-dark);
  cursor: pointer;
  font-family: inherit;
}

.win-explorer-nav-item span:first-child {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 13px;
}

.win-explorer-nav-item:hover {
  background: #eef1f6;
}

.win-explorer-nav-item.is-on,
.win-explorer-nav-item.is-current {
  background: #e8eefc;
  color: var(--primary);
}

.win-explorer-nav-item--sub {
  padding-left: 28px;
}

.win-explorer-nav-item--sub-deep {
  padding-left: 44px;
}

.win-explorer-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  background: #fff;
}

.win-explorer-desc {
  position: fixed;
  top: 96px;
  right: 32px;
  z-index: 1152;
  width: 280px;
  padding: 14px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  pointer-events: auto;
}

.win-explorer-desc[hidden] {
  display: none !important;
}

.win-explorer-desc-card {
  padding: 14px;
  border: 1px solid #dfe6f5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 34, 51, 0.06);
  color: var(--text-dark);
}

.win-explorer-desc-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.win-explorer-desc-card ol {
  margin: 0;
  padding-left: 18px;
}

.win-explorer-desc-card li {
  margin: 0 0 10px;
  line-height: 1.65;
  color: var(--text-mid);
}

.win-explorer-desc-card li:last-child {
  margin-bottom: 0;
}

.win-explorer-files {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.win-explorer-files th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--text-mid);
  border-bottom: 1px solid #eceef2;
  background: #fafbfc;
  position: sticky;
  top: 0;
  z-index: 1;
}

.win-explorer-files td {
  padding: 6px 12px;
  border-bottom: 1px solid #f5f6f8;
  color: var(--text-dark);
  white-space: nowrap;
}

.win-explorer-files tbody tr {
  cursor: default;
}

.win-explorer-files tbody tr:hover {
  background: #f5f8ff;
}

.win-explorer-files tbody tr.is-selected {
  background: #cce8ff;
}

.win-explorer-files tbody tr.is-selected:hover {
  background: #b8dcff;
}

.win-file-ico {
  vertical-align: middle;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  background: #2b579a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.win-file-ico--doc {
  background: #2b579a;
}

.win-file-ico--ppt {
  background: #d24726;
}

.win-file-ico--xls {
  background: #217346;
}

.win-file-ico--pdf {
  background: #e74c3c;
  font-size: 8px;
}

.win-file-ico--file {
  background: #7b5bb8;
  font-size: 8px;
}

.win-sync-status-cell {
  width: 56px;
  text-align: center;
}

.win-sync-status {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.win-sync-status--cloud {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16' fill='none'%3E%3Cpath d='M5.5 14h9a3.5 3.5 0 0 0 .4-7 4.5 4.5 0 0 0-8.7 1.5A3 3 0 0 0 5.5 14z' stroke='%238b95a8' stroke-width='1.35' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.win-sync-status--downloaded {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='7.5' stroke='%2352c41a' stroke-width='1.35'/%3E%3Cpath d='M6.8 10.1l2.1 2.1 4.6-4.8' stroke='%2352c41a' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.win-explorer-files--vault thead th:nth-child(2),
.win-explorer-files--vault tbody td:nth-child(2) {
  width: 56px;
  text-align: center;
}

.win-file-ico--folder {
  background: transparent;
  color: transparent;
  font-size: 0;
  width: 20px;
  height: 16px;
  border-radius: 0;
  background: linear-gradient(#ffd966 0 0) center/100% 78% no-repeat;
  box-shadow: inset 0 -3px 0 #f4b942;
  position: relative;
}

.win-file-ico--folder::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: #ffd966;
}

.win-explorer-files--this-pc tbody td {
  border-bottom: none;
  padding-top: 10px;
  padding-bottom: 10px;
}

.win-explorer-section td {
  padding: 18px 12px 8px;
  border-bottom: none;
  font-size: 13px;
  font-weight: 600;
  color: #1a2233;
  background: transparent;
}

.win-explorer-row-drive {
  cursor: pointer;
}

.win-explorer-row-drive.is-disabled {
  cursor: default;
  opacity: 0.92;
}

.win-explorer-row-drive:not(.is-disabled):hover td {
  background: #eef6fc;
}

.win-explorer-drive {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
}

.win-explorer-drive-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
}

.win-explorer-drive-ico--vault {
  background:
    radial-gradient(circle at 35% 35%, #7ec8ff 0 18%, transparent 19%),
    radial-gradient(circle at 62% 58%, #5b79d1 0 24%, transparent 25%),
    linear-gradient(145deg, #9ed0ff, #5b79d1);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.win-explorer-drive-ico--disk {
  background:
    linear-gradient(#fff 0 0) center 18px/28px 18px no-repeat,
    linear-gradient(#4aa3ff, #2b579a);
  border-radius: 4px;
  position: relative;
}

.win-explorer-drive-ico--disk::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px #2b579a;
}

.win-explorer-drive-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.win-explorer-drive-text strong {
  font-size: 14px;
  font-weight: 600;
  color: #1a2233;
}

.win-explorer-drive-text > span:not(.win-explorer-drive-bar) {
  font-size: 12px;
  color: #5c6578;
}

.win-explorer-drive-bar {
  display: block;
  width: 180px;
  max-width: 100%;
  height: 4px;
  margin-top: 2px;
  border-radius: 999px;
  background: #e8ecf4;
  overflow: hidden;
}

.win-explorer-drive-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4aa3ff;
}

.win-explorer-row-folder {
  cursor: pointer;
}

.win-explorer-row-folder:hover td {
  background: #eef6fc;
}

/* 资源管理器右键菜单（Win11 风格） */
.win-explorer-ctx {
  position: fixed;
  z-index: 1160;
  min-width: 220px;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.win-explorer-ctx[hidden] {
  display: none !important;
}

.win-explorer-ctx-item[hidden] {
  display: none !important;
}

.win-explorer-ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  padding: 6px 10px 6px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: 12px;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.win-explorer-ctx-item:hover:not(:disabled):not(.is-disabled) {
  background: #f0f4fc;
}

.win-explorer-ctx-item:disabled,
.win-explorer-ctx-item.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.win-explorer-ctx-ico {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 14px;
  opacity: 0.85;
}

.win-explorer-ctx-arrow {
  margin-left: auto;
  color: var(--text-light);
  font-size: 14px;
}

.win-explorer-ctx-kbd {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-light);
}

.win-explorer-ctx-sep {
  height: 1px;
  margin: 4px 8px;
  background: #eceef2;
}

.win-explorer-ctx-item-wrap {
  position: relative;
}

.win-explorer-ctx-sub {
  position: absolute;
  left: calc(100% + 2px);
  top: -4px;
  min-width: 210px;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.win-explorer-ctx-sub[hidden] {
  display: none !important;
}

.win-explorer-ctx-sub .win-explorer-ctx-item .win-file-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  font-size: 10px;
}

.win-explorer-ctx-item .win-file-ico.win-file-ico--folder {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.win-explorer-ctx--win11 {
  width: 340px;
  min-width: 340px;
  padding: 0;
  overflow: hidden;
  background: #f6f7fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  color: #202124;
}

.win-explorer-ctx--win11 .win-explorer-ctx-quickbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 61px;
  background: #f7f9fb;
}

.win-explorer-ctx-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  border: 0;
  border-right: 1px solid #e7ebf0;
  background: transparent;
  color: #202124;
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.win-explorer-ctx-quick:last-child {
  border-right: 0;
}

.win-explorer-ctx-quick:hover:not(:disabled):not(.is-disabled) {
  background: #eef3f8;
}

.win-explorer-ctx-quick:disabled,
.win-explorer-ctx-quick.is-disabled,
.win-explorer-ctx-quick[hidden] {
  display: none !important;
}

.win-explorer-ctx-quick .ctx-quick-ico {
  height: 18px;
  color: #0067c0;
  font-size: 17px;
  line-height: 18px;
}

.win-explorer-ctx--win11 .win-explorer-ctx-item {
  min-height: 32px;
  gap: 10px;
  padding: 5px 12px 5px 16px;
  border-radius: 0;
  color: #202124;
  font-size: 14px;
  line-height: 22px;
}

.win-explorer-ctx--win11 .win-explorer-ctx-item:hover:not(:disabled):not(.is-disabled) {
  background: #eaf2fb;
}

.win-explorer-ctx--win11 .win-explorer-ctx-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  height: 20px;
  color: #0067c0;
  font-size: 16px;
  opacity: 1;
}

.win-explorer-ctx--win11 .win-explorer-ctx-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-explorer-ctx--win11 .win-explorer-ctx-kbd {
  margin-left: 8px;
  color: #6c737c;
  font-size: 12px;
}

.win-explorer-ctx--win11 .win-explorer-ctx-arrow {
  margin-left: 8px;
  color: #6c737c;
  font-size: 18px;
  line-height: 18px;
}

.win-explorer-ctx--win11 .win-explorer-ctx-sep {
  height: 1px;
  margin: 0;
  background: #e2e5ea;
}

.win-explorer-ctx--win11 .ctx-ico--wps {
  color: #ef3b2f;
  font-size: 13px;
  font-weight: 700;
}

.win-explorer-ctx--win11 .ctx-ico--brand {
  color: #2f6fed;
}

.win-explorer-ctx--win11 .ctx-ico--danger {
  color: #4b5563;
}

.win-explorer-ctx--win11 .ctx-ico--ai {
  color: #7c3aed;
  font-weight: 700;
}

.win-explorer-ctx--win11 .win-explorer-ctx-more {
  background: #e9edf8;
}

.win-explorer-ctx--win11 .win-explorer-ctx-sub {
  left: calc(100% + 4px);
  top: 0;
  min-width: 220px;
  padding: 4px 0;
  background: #f6f7fa;
  border-radius: 0;
}

/* 解密并另存为 */
.modal-dialog.decrypt-save-dialog {
  max-width: 520px;
}

.decrypt-save-dialog > .modal-head {
  padding: 10px 28px;
  min-height: auto;
  font-size: 15px;
  line-height: 1.35;
}

.decrypt-save-dialog > .modal-head button {
  width: 28px;
  height: 28px;
  font-size: 16px;
  border-radius: 6px;
}

.decrypt-save-dialog > .modal-body.decrypt-save-body {
  padding: 14px 28px 10px;
}

.decrypt-save-dialog > .modal-footer {
  padding: 10px 28px 14px;
  gap: 10px;
}

.decrypt-save-path-row {
  margin-top: 2px;
}

.client-select.is-locked .client-select-trigger {
  cursor: default;
  background: #f4f6f9;
}

.decrypt-save-hint {
  margin: 12px 0 0;
  padding: 8px 10px;
  border: 1px solid #ffe1a6;
  border-radius: 4px;
  background: #fff8e6;
  font-size: 12px;
  color: #8a5a00;
  line-height: 1.5;
}

/* —— 同步盘登录页（Windows 桌面 + 居中登录窗） —— */
.app-frame--login-desktop {
  display: flex;
  flex-direction: column;
}

.app-frame--login-desktop .login-desktop {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background-color: #0067b8;
  background-image:
    radial-gradient(ellipse 115% 85% at 88% 12%, rgba(110, 231, 255, 0.58), transparent 52%),
    radial-gradient(ellipse 95% 75% at 12% 88%, rgba(94, 92, 230, 0.52), transparent 48%),
    radial-gradient(ellipse 70% 55% at 52% 48%, rgba(0, 164, 239, 0.38), transparent 58%),
    linear-gradient(145deg, #004578 0%, #0067b8 34%, #1a96e8 62%, #004f8a 100%);
}

.app-frame--login-desktop .login-desktop::before,
.app-frame--login-desktop .login-desktop::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.app-frame--login-desktop .login-desktop::before {
  width: min(68vw, 520px);
  height: min(68vw, 520px);
  right: -8%;
  top: -12%;
  background: radial-gradient(circle, rgba(168, 218, 255, 0.45) 0%, rgba(168, 218, 255, 0) 68%);
  filter: blur(2px);
}

.app-frame--login-desktop .login-desktop::after {
  width: min(72vw, 560px);
  height: min(72vw, 560px);
  left: -10%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(120, 108, 230, 0.42) 0%, rgba(120, 108, 230, 0) 70%);
  filter: blur(3px);
}

.app-frame--login-desktop .login-page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 24px;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 52px);
  padding: 24px;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 36px 32px 32px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow:
    0 12px 40px rgba(0, 36, 86, 0.22),
    0 2px 8px rgba(0, 36, 86, 0.1);
}

.login-card--hint {
  animation: login-card-hint 0.85s ease-in-out 2;
  box-shadow:
    0 0 0 3px rgba(91, 121, 209, 0.35),
    0 12px 40px rgba(0, 36, 86, 0.22),
    0 2px 8px rgba(0, 36, 86, 0.1);
}

@keyframes login-card-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.client-login-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  position: fixed;
  inset: 0;
  background: rgba(26, 34, 51, 0.35);
  backdrop-filter: blur(4px);
}

.client-login-modal-frame {
  width: min(1280px, 100%);
  height: min(calc(100vh - 52px), 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(26, 34, 51, 0.04),
    0 24px 64px rgba(44, 62, 80, 0.22);
}

.client-login-modal-frame .login-desktop {
  flex: 1;
  min-height: 0;
}

.client-login-modal-frame .login-page {
  min-height: 100%;
}

body.client-body--login:has(#clientLoginModal.show) > .app-frame--login-desktop > .login-desktop > .login-page > .login-card {
  visibility: hidden;
}

.login-card-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: #b0b6c0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card-close:hover {
  color: #8b95a8;
}

.login-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.login-logo-k {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7893e0 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(91, 121, 209, 0.28);
}

.login-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.login-card-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input::placeholder {
  color: var(--text-light);
}

.login-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 121, 209, 0.12);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.login-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.login-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.login-check-box {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  position: relative;
}

.login-check input:checked + .login-check-box {
  background: var(--primary);
  border-color: var(--primary);
}

.login-check input:checked + .login-check-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login-check-label {
  font-size: 13px;
  color: var(--text-mid);
}

.login-forgot {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.login-forgot-link {
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  text-decoration: none;
}

.login-forgot-link:hover {
  color: var(--primary);
}

.login-card-form .btn-login {
  width: 100%;
  height: 40px;
  margin-top: 6px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #7893e0 0%, var(--primary) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(91, 121, 209, 0.28);
}

.login-card-form .btn-login:hover:not(:disabled) {
  background: linear-gradient(180deg, #6b88dc 0%, var(--primary-hover) 100%);
  box-shadow: 0 6px 20px rgba(91, 121, 209, 0.32);
}

.login-card-form .btn-login:disabled {
  background: #c8ced8;
  box-shadow: none;
  color: #fff;
  opacity: 0.7;
  cursor: not-allowed;
}

.login-uk-hint {
  width: 100%;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  box-sizing: border-box;
}

.login-uk-hint--error {
  background: #fde8e8;
  color: #e74c3c;
}

.login-uk-hint--success {
  background: #e9f7ef;
  color: #27ae60;
}

/* —— WPS 默认打开方式（资源管理器双击文件） —— */
.wps-doc-window {
  position: fixed;
  z-index: 1200;
  inset: 36px 48px 80px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  pointer-events: none;
}

.wps-doc-window[hidden] {
  display: none !important;
}

.wps-doc-inner {
  pointer-events: auto;
  width: min(960px, 100%);
  height: 100%;
  max-height: 680px;
  display: flex;
  flex-direction: column;
  background: #f5f6f8;
  border: 1px solid #c8cdd8;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(26, 34, 51, 0.24);
  overflow: hidden;
  font-size: 13px;
  color: var(--text-dark);
}

.wps-doc-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 12px;
  min-height: 36px;
  background: linear-gradient(180deg, #fff 0%, #f0f1f4 100%);
  border-bottom: 1px solid #dfe2e8;
}

.wps-doc-logo {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(135deg, #e65327 0%, #d84315 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wps-doc-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wps-doc-winbtns {
  display: flex;
  flex-shrink: 0;
}

.wps-doc-winbtns button {
  width: 40px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--text-mid);
  cursor: pointer;
}

.wps-doc-winbtns button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.wps-doc-winbtns button:last-child:hover {
  background: #e81123;
  color: #fff;
}

.wps-doc-ribbon {
  background: #fff;
  border-bottom: 1px solid #e8ebf0;
}

.wps-doc-ribbon-tabs {
  display: flex;
  gap: 2px;
  padding: 4px 8px 0;
  border-bottom: 1px solid #e8ebf0;
}

.wps-doc-ribbon-tabs span {
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-mid);
  cursor: default;
}

.wps-doc-ribbon-tabs span.is-active {
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 2px solid #e65327;
  margin-bottom: -1px;
}

.wps-doc-ribbon-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 44px;
}

.wps-doc-ribbon-btn {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-mid);
  background: #f5f6f8;
  border: 1px solid #e2e5eb;
}

.wps-doc-ribbon-btn.is-wide {
  min-width: 72px;
}

.wps-doc-ribbon-sep {
  width: 1px;
  height: 24px;
  background: #e2e5eb;
  margin: 0 4px;
}

.wps-doc-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #e8eaed;
  padding: 24px;
}

.wps-doc-page {
  max-width: 720px;
  min-height: 100%;
  margin: 0 auto;
  padding: 48px 56px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.wps-doc-line {
  height: 10px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: #eef0f4;
}

.wps-doc-line:nth-child(odd) { width: 92%; }
.wps-doc-line:nth-child(even) { width: 78%; }
.wps-doc-line:nth-child(3n) { width: 86%; }

.wps-doc-sheet {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d8dde6;
}

.wps-doc-sheet-tabs {
  padding: 6px 8px 0;
  border-bottom: 1px solid #e2e5eb;
  background: #f5f6f8;
}

.wps-doc-sheet-tabs span {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #d8dde6;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: #fff;
  color: var(--text-dark);
}

.wps-doc-sheet-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 28px;
}

.wps-doc-sheet-grid span {
  border-right: 1px solid #eef0f4;
  border-bottom: 1px solid #eef0f4;
  background: #fff;
}

.wps-doc-slide-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.wps-doc-slide {
  width: min(640px, 100%);
  aspect-ratio: 16 / 9;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wps-doc-slide-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
}

.wps-doc-slide-line {
  height: 12px;
  width: 70%;
  border-radius: 2px;
  background: #eef0f4;
}

.wps-doc-slide-line--short {
  width: 45%;
}

.wps-doc-generic {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-mid);
}

.wps-doc-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  min-height: 24px;
  font-size: 11px;
  color: var(--text-mid);
  background: #f0f1f4;
  border-top: 1px solid #dfe2e8;
}

/* ── 任务栏 U盘图标 ── */
.app-taskbar-usb-ico {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #5c6578;
  padding: 0;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.app-taskbar-usb-ico:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #1a2233;
}

.app-taskbar-usb-ico .ico-usb {
  width: 18px;
  height: 18px;
  display: block;
}

.app-taskbar-usb-ico.usb-inserted {
  color: #5b79d1;
}

.app-taskbar-usb-ico.usb-error {
  color: #e74c3c;
}

.usb-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  font-size: 8px;
  line-height: 12px;
  text-align: center;
  font-weight: 700;
  display: none;
}

.app-taskbar-usb-ico.usb-inserted .usb-indicator {
  display: block;
}

.app-taskbar-usb-ico.usb-inserted:not(.usb-error) .usb-indicator {
  color: #27ae60;
}

.app-taskbar-usb-ico.usb-error .usb-indicator {
  color: #e74c3c;
}

/* ── 任务栏 网络图标 ── */
.app-taskbar-net-ico {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #5b79d1;
  padding: 0;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s, opacity 0.2s;
}

.app-taskbar-net-ico:hover {
  background: rgba(255, 255, 255, 0.6);
}

.app-taskbar-net-ico.net-offline {
  color: #a0a8b8;
  opacity: 0.55;
}

.app-taskbar-net-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ── 任务栏 强制使用UKey人员图标 ── */
.app-taskbar-senior-ico {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: #a0a8b8;
  opacity: 0.9;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s, opacity 0.15s;
}

.app-taskbar-senior-ico:hover {
  background: rgba(255, 255, 255, 0.6);
}

.app-taskbar-senior-ico .ico-senior {
  width: 18px;
  height: 18px;
  display: block;
}

.app-taskbar-senior-ico .ico-senior-slash {
  opacity: 1;
  transition: opacity 0.15s ease;
}

.app-taskbar-senior-ico.is-active {
  color: #5b79d1;
  opacity: 1;
}

.app-taskbar-senior-ico.is-active .ico-senior-slash {
  opacity: 0;
}

/* ── USB 右键菜单扩展 ── */
.usb-context-menu {
  min-width: 220px;
  z-index: 2100;
}

.tray-menu-category {
  font-size: 11px;
  font-weight: 600;
  color: #8b95a8;
  padding: 6px 18px 2px;
  letter-spacing: 0.03em;
}

.tray-menu-sep {
  height: 1px;
  background: #e4e8ef;
  margin: 4px 8px;
}

/* ── USB 状态 Toast 提示 ── */
.usb-status-toast {
  position: fixed;
  bottom: 70px;
  right: 20px;
  z-index: 1200;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 16px rgba(26, 34, 51, 0.2);
  animation: usb-toast-in 0.25s ease-out;
  pointer-events: none;
  max-width: 360px;
  line-height: 1.45;
}

.usb-toast--info {
  background: #5b79d1;
}

.usb-toast--success {
  background: #27ae60;
}

.usb-toast--top {
  bottom: auto;
  right: auto;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.usb-toast--top.usb-toast--error {
  background: #fff;
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.35);
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.12);
}

.usb-toast--top.usb-toast--out {
  animation: usb-toast-out-top 0.28s ease-in forwards;
}

.usb-toast--error {
  background: #e74c3c;
  color: #fff;
}

.usb-toast--warn {
  background: #f39c12;
}

.usb-toast--out {
  animation: usb-toast-out 0.28s ease-in forwards;
}

@keyframes usb-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes usb-toast-in-top {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes usb-toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ── 方案B UK 门禁全屏遮罩 ── */
.uk-overlay {
  position: absolute;
  inset: 0 0 46px 0;
  z-index: 2000;
  background: rgba(26, 34, 51, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: uk-overlay-in 0.35s ease-out;
}

.uk-overlay[hidden] {
  display: none !important;
}

@keyframes uk-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.uk-overlay-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 56px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(26, 34, 51, 0.25);
  max-width: 420px;
  width: calc(100% - 48px);
  animation: uk-card-in 0.4s ease-out;
}

@keyframes uk-card-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.uk-overlay-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: #5b79d1;
}

.uk-overlay-icon svg {
  width: 100%;
  height: 100%;
}

.uk-overlay-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a2233;
  margin: 0 0 8px;
}

.uk-overlay-desc {
  font-size: 15px;
  color: #5c6578;
  margin: 0 0 20px;
  line-height: 1.5;
}

.uk-overlay-status {
  font-size: 13px;
  font-weight: 500;
  color: #8b95a8;
  margin: 0 0 12px;
  min-height: 20px;
}

.uk-overlay-status--error {
  color: #e74c3c;
}

.uk-overlay-hint {
  font-size: 12px;
  color: #a0a8b8;
  margin-top: 4px;
}

.uk-overlay-hint span {
  display: inline-block;
  padding: 6px 14px;
  background: #f4f7fc;
  border-radius: 6px;
  color: #8b95a8;
}

/* ── 登录页 UK 状态区域 ── */
.login-uk-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
  transition: background 0.2s, color 0.2s;
}

.login-uk-status--none {
  background: #f4f6fa;
  color: #8b95a8;
}

.login-uk-status--success {
  background: #eafaf1;
  color: #27ae60;
}

.login-uk-status--error {
  background: #fdf2f2;
  color: #e74c3c;
}
/* 2026-07 云盘目录与办公目录设置 */
.client-filter-select{height:32px;min-width:112px;border:1px solid #d9dfe8;border-radius:4px;background:#fff;padding:0 30px 0 10px;color:#344054}
.sync-progress{display:flex;align-items:center;gap:8px;min-width:150px}.sync-progress-track{width:86px;height:7px;background:#e9edf3;border-radius:10px;overflow:hidden}.sync-progress-track i{display:block;height:100%;background:#2f6fed;border-radius:10px}.sync-progress.is-error .sync-progress-track i{background:#e5484d}.sync-progress small{color:#667085}
.status-pill{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:12px;font-size:12px;background:#eef3ff;color:#2859c5}.status-pill.is-success{background:#ecf8f0;color:#16834b}.status-pill.is-running{background:#fff7e6;color:#b45309}.status-pill.is-wait{background:#f2f4f7;color:#667085}.status-pill.is-error{background:#fff0f0;color:#d92d20}
.table-th-filter{display:inline-flex;align-items:center;gap:6px;position:relative;white-space:nowrap}.th-filter-btn{width:22px;height:22px;border:0;background:transparent;cursor:pointer;position:relative}.th-filter-btn::before{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;background:linear-gradient(to bottom,transparent 0 2px,#111 2px 4px,transparent 4px 6px,#111 6px 8px,transparent 8px 10px,#111 10px 12px,transparent 12px);clip-path:polygon(0 0,100% 0,62% 46%,62% 100%,42% 86%,42% 46%)}.dropdown-filter.is-active .th-filter-btn,.dropdown-filter.has-value .th-filter-btn{background:#f2f6ff;border-radius:4px}.th-filter-menu{display:none;position:absolute;top:28px;right:0;min-width:154px;padding:8px 0;background:#fff;border:1px solid #e1e5ee;box-shadow:0 4px 14px rgba(16,24,40,.16);z-index:40}.dropdown-filter.is-open .th-filter-menu{display:block}.th-filter-menu label{display:flex;align-items:center;gap:10px;height:34px;padding:0 16px;font-size:13px;font-weight:400;color:#4b5565;cursor:pointer}.th-filter-menu label:hover{background:#f7f9fc}.th-filter-menu input{appearance:none;width:15px;height:15px;border:2px solid #c7cdd6;border-radius:50%;background:#fff}.th-filter-menu input:checked{border-color:#2f6fed;box-shadow:inset 0 0 0 3px #fff;background:#2f6fed}.folder-stat{display:block;min-width:260px}.folder-stat__nums{display:flex;align-items:flex-end;gap:7px;margin-bottom:5px;font-weight:800;line-height:1}.folder-stat__nums span{font-size:30px;color:#6f7378}.folder-stat__nums span:nth-child(2){color:#3b7d00}.folder-stat__nums span:nth-child(3){color:#bd7100}.folder-stat__nums span:nth-child(4){color:#b00020}.folder-stat__nums i{font-size:28px;color:#4a4d52;font-style:normal}.folder-stat__barrow{display:flex;align-items:center;gap:12px}.folder-stat .sync-progress-track{width:168px;height:20px;border:4px solid #dfe1e6;background:#f3f4f7;border-radius:999px}.folder-stat .sync-progress-track i{background:#3d8200;border-radius:999px}.folder-stat__pct{font-size:24px;color:#30343a}.stock-fail{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stock-fail__reason{font-size:12px;color:#d92d20}.stock-retry{height:24px;border:1px solid #ffd0d0;border-radius:4px;background:#fff;color:#d92d20;font-size:12px;cursor:pointer}.file-state-note{display:block;margin-top:3px;font-size:12px;color:#d92d20}.link.is-disabled-action{color:#b6bdc8!important;cursor:not-allowed;pointer-events:none}
.link.is-disabled{color:#b6bdc8!important;cursor:not-allowed;pointer-events:none}
.office-dir-v2{padding:4px 0 0}.office-dir-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.office-dir-head strong{font-size:14px}.office-dir-list{border:1px solid #e3e7ee;border-radius:6px;overflow:hidden}.office-dir-item{display:flex;align-items:center;gap:10px;padding:11px 12px;border-bottom:1px solid #edf0f4}.office-dir-item:last-child{border-bottom:0}.office-dir-icon{font-size:18px}.office-dir-path{flex:1;min-width:0}.office-dir-path strong,.office-dir-path span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.office-dir-path span{font-size:12px;color:#8a94a6;margin-top:2px}.office-dir-remove{border:0;background:transparent;color:#d92d20;cursor:pointer}.office-dir-empty{padding:28px;text-align:center;color:#8a94a6}.office-add-row{display:flex;gap:8px;margin-top:12px}.office-add-row input{flex:1}.office-dir-demo-row{margin-top:8px}.office-dir-demo-row .btn{height:30px;font-size:12px}.field-error{color:#d92d20;font-size:12px;margin-top:7px}.choice-list{display:grid;gap:10px;margin:12px 0}.choice-card{display:flex;gap:10px;padding:11px;border:1px solid #dde3ec;border-radius:6px;cursor:pointer}.choice-card:has(input:checked){border-color:#2f6fed;background:#f3f6ff}.choice-card b,.choice-card small{display:block}.choice-card small{color:#667085;margin-top:3px}.office-transfer-select{margin-top:10px;width:100%;height:34px}
.directory-row{cursor:pointer}.directory-row:hover{background:#f7f9fc}.directory-sub{display:block;font-size:12px;color:#98a2b3;margin-top:2px}.file-ico--folder{color:#e8a317}.org-picker{display:grid;grid-template-columns:180px 1fr;min-height:260px;border:1px solid #e1e6ee;border-radius:6px;overflow:hidden}.org-depts{background:#f7f9fc;border-right:1px solid #e1e6ee;padding:8px}.org-depts button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px;border-radius:4px}.org-depts button.on{background:#eaf0ff;color:#245bc4}.org-users{padding:12px}.org-user{display:flex;align-items:center;gap:8px;padding:8px}.selected-users{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.selected-user{background:#eef3ff;color:#2859c5;padding:4px 8px;border-radius:12px;font-size:12px}
.personal-office-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:300px;text-align:center;color:#667085}.personal-office-empty strong{font-size:16px;color:#1d2939}.personal-office-empty p{font-size:13px}.personal-office-empty .btn{margin-top:4px}.origin-mini{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:6px;border-radius:50%;font-size:11px;font-weight:700;vertical-align:1px}.origin-mini--cloud{background:#eef4ff;color:#245bc4}.origin-mini--share{background:#f0fdf4;color:#16834b}.origin-mini--no-permission{background:#f2f4f7;color:#667085}.personal-row--no-permission td{background:#f7f8fa!important;color:#a1a8b3!important}.personal-row--no-permission .file-name-cell,.personal-row--no-permission .sync-progress,.personal-row--no-permission .stock-cell{opacity:.62}.personal-row--no-permission .personal-actions .link{color:#b6bdc8!important;cursor:not-allowed;pointer-events:none}.personal-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.link-danger{color:#d92d20!important}.approval-record-focus td,.personal-record-focus td{background:#f4f7ff!important;box-shadow:inset 0 2px 0 #6483d7,inset 0 -2px 0 #6483d7}.approval-record-focus td:first-child,.personal-record-focus td:first-child{box-shadow:inset 3px 0 0 #6483d7,inset 0 2px 0 #6483d7,inset 0 -2px 0 #6483d7}.approval-record-focus td:last-child,.personal-record-focus td:last-child{box-shadow:inset -3px 0 0 #6483d7,inset 0 2px 0 #6483d7,inset 0 -2px 0 #6483d7}
.origin-mini--encrypted{background:#fff7e6;color:#b45309}.origin-mini--unsupported{background:#fff1f0;color:#c4322d}
/* DS-PC001253：办公目录区标题行副文案（个人目录将实时同步以下位置） */
.office-dir-head{flex-wrap:wrap;gap:4px 12px}.office-dir-head p{margin:0;font-size:12px;color:#8a94a6}
.download-destination-list{display:grid;gap:8px}.download-destination-list label{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid #e1e6ee;border-radius:6px}.download-destination-list label:has(input:checked){border-color:#2f6fed;background:#f3f6ff}.download-destination-list span{display:block;font-size:12px;color:#667085;margin-top:2px}
.download-destination-select{position:relative;margin-top:10px}.download-destination-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:40px;border:1px solid #2f6fed;border-radius:6px;background:#fff;padding:0 12px;color:#1d2939;text-align:left;cursor:pointer}.download-destination-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-destination-trigger i{font-style:normal;color:#667085}.download-destination-menu{position:absolute;left:0;right:0;top:46px;z-index:80;max-height:260px;overflow:auto;border:1px solid #d9e1ee;border-radius:6px;background:#fff;box-shadow:0 12px 28px rgba(16,24,40,.16)}.download-tree-row{display:flex;align-items:center;gap:7px;width:100%;min-height:42px;border:0;border-bottom:1px solid #f0f3f8;background:#fff;color:#1d2939;text-align:left;cursor:pointer}.download-tree-row:hover{background:#f7faff}.download-tree-row.is-selected{background:#eef4ff;color:#245bc4}.download-tree-toggle{width:16px;height:16px;line-height:16px;text-align:center;color:#667085;transition:transform .15s}.download-tree-toggle.is-open{transform:rotate(90deg)}.download-tree-toggle.is-placeholder{visibility:hidden}.download-tree-folder{flex:0 0 auto}.download-tree-label{min-width:0}.download-tree-label b,.download-tree-label small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-tree-label small{margin-top:2px;color:#667085;font-size:12px}

/* 组织架构选择器与表单细节优化 */
.office-add-row input{height:34px;padding:0 10px;border:1px solid #d9d9d9;border-radius:4px;background:#fff;color:#303133;outline:none;box-sizing:border-box;transition:border-color .2s,box-shadow .2s}.office-add-row input:hover{border-color:#a8abb2}.office-add-row input:focus{border-color:#409eff;box-shadow:0 0 0 2px rgba(64,158,255,.12)}
.org-selector-dialog{width:min(900px,88vw)!important;max-width:900px}.org-selector-body{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(280px,.92fr);height:480px;padding:0!important}.org-selector-left{padding:18px 20px;border-right:1px solid #ebeef2;overflow:auto}.org-selector-search{position:relative;margin-bottom:14px}.org-selector-search input{width:100%;height:38px;border:1px solid #dcdfe6;border-radius:4px;padding:0 38px 0 12px;outline:none;box-sizing:border-box}.org-selector-search input:focus{border-color:#409eff}.org-selector-search span{position:absolute;right:12px;top:9px;color:#a8abb2}.org-tree{font-size:14px;color:#606266}.org-tree-row{display:flex;align-items:center;gap:7px;min-height:34px;border-radius:4px;padding-right:6px}.org-tree-row:hover{background:#f5f7fa}.org-tree-toggle{width:18px;height:18px;border:0;background:transparent;color:#909399;padding:0;cursor:pointer;transition:transform .15s}.org-tree-toggle.open{transform:rotate(90deg)}.org-tree-toggle.placeholder{visibility:hidden}.org-tree-check{width:17px;height:17px;accent-color:#1677ff}.org-tree-check:disabled{opacity:.55}.org-tree-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.org-selector-right{padding:20px;overflow:auto}.org-selected-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.org-selected-head strong{font-size:16px}.org-selected-clear{border:0;background:transparent;color:#1677ff;cursor:pointer}.org-selected-list{display:grid;gap:8px}.org-selected-item{display:flex;justify-content:space-between;align-items:center;padding:11px 12px;border:1px solid #ebeef2;border-radius:6px;background:#fafbfc}.org-selected-item button{border:0;background:transparent;color:#909399;font-size:18px;cursor:pointer}.org-selected-empty{padding:45px 0;text-align:center;color:#a8abb2}.org-selector-dialog .modal-footer{padding:12px 20px;border-top:1px solid #ebeef2}
@media(max-width:760px){.org-selector-body{grid-template-columns:1fr;height:60vh}.org-selector-left{border-right:0;border-bottom:1px solid #ebeef2}.org-selector-right{display:none}}

/* 2026-07 UI polish: clearer tool surface, quieter contrast, tighter controls */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #0f766e;
  --sidebar-bg: #f7f9fc;
  --sidebar-active: #eaf1ff;
  --page-bg: #f3f6fb;
  --border: #e2e8f0;
  --text-dark: #172033;
  --text-mid: #536174;
  --text-light: #8792a5;
  --radius: 8px;
  --radius-lg: 12px;
}

body.client-body,
body.client-body--app {
  background: var(--page-bg);
  color: var(--text-dark);
  font-size: 14px;
}

/* 浏览器产品形态：只保留业务导航与核心内容，不渲染桌面窗口/系统任务栏外壳。 */
body.web-client-runtime.client-body {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #f4f7fb;
  background-image: none;
}

body.web-client-runtime > .app-frame,
body.web-client-runtime > .app-frame--v2 {
  width: 100%;
  max-width: none;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.web-client-runtime > .app-frame > .titlebar,
body.web-client-runtime > .app-frame--v2 > .titlebar,
body.web-client-runtime #appTaskbar,
body.web-client-runtime #appTaskbarMenu,
body.web-client-runtime #appUsbContextMenu,
body.web-client-runtime #ukOverlay,
body.web-client-runtime #localExplorerWindow {
  display: none !important;
}

body.web-client-runtime .app-frame--with-taskbar {
  padding-bottom: 0 !important;
}

body.web-client-runtime .app-main {
  height: 100vh;
  min-height: 0;
}

body.web-client-runtime.client-body--login .app-main,
body.web-client-runtime.client-body--login .content {
  min-height: 100vh;
}

body.web-client-runtime.client-body--login .content {
  background: linear-gradient(145deg,#eef3fb 0%,#f8faff 48%,#eef4ff 100%);
}

body.web-client-runtime .web-user-settings { display: block; }
body.desktop-client-runtime .web-user-settings { display: none !important; }

.local-bridge-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #dfe6f1;
  border-radius: 8px;
  background: #f8faff;
}

.local-bridge-status > div { flex: 1; min-width: 0; }
.local-bridge-status strong { display: block; color: #24324a; font-size: 13px; }
.local-bridge-status p { margin: 3px 0 0; color: #7e8ba0; font-size: 12px; }
.local-bridge-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.12); }
.local-bridge-status.is-ready .local-bridge-dot { background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,.12); }
.local-bridge-status.is-error .local-bridge-dot { background: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.11); }
.local-bridge-install {
  margin: -6px 0 18px;
  padding: 12px 14px;
  border: 1px solid #dfe6f1;
  border-top: 0;
  background: #fff;
}
.local-bridge-install[hidden] { display: none; }
.local-bridge-install-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.local-bridge-install-row label { color: #5e6b7f; font-size: 12px; }
.local-bridge-install-row select { height: 34px; min-width: 104px; border: 1px solid #d5dce8; border-radius: 5px; background: #fff; color: #24324a; padding: 0 28px 0 9px; }
.local-bridge-install-row .btn { height: 34px; display: inline-flex; align-items: center; text-decoration: none; }
.local-bridge-package { color: #315da8; font-size: 12px; text-decoration: none; }
.local-bridge-package:hover,
.local-desktop-download:hover { text-decoration: underline; }
.local-bridge-install > p { margin: 8px 0 0; color: #7e8ba0; font-size: 12px; line-height: 1.5; }
.local-desktop-offer { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 11px; padding-top: 10px; border-top: 1px solid #edf0f5; color: #67758a; font-size: 12px; line-height: 1.5; }
.local-desktop-offer b { color: #354258; }
.local-desktop-download { flex: 0 0 auto; border: 0; background: transparent; color: #315da8; padding: 0; font: inherit; cursor: pointer; text-decoration: none; }
.local-desktop-download--secondary { margin-left: -5px; }
.local-desktop-actions { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }

@media (max-width: 720px) {
  .local-bridge-status { align-items: flex-start; flex-wrap: wrap; }
  .local-bridge-status > div { min-width: calc(100% - 30px); }
  .local-bridge-install-row { align-items: stretch; }
  .local-bridge-install-row label { align-self: center; }
  .local-bridge-install-row .local-bridge-download { width: 100%; justify-content: center; }
  .local-desktop-offer { align-items: flex-start; flex-direction: column; }
}

.app-frame,
.app-frame--v2 {
  border-color: #dfe7f2;
  box-shadow: 0 18px 52px rgba(20, 32, 52, 0.12);
}

.titlebar,
.content-topbar {
  background: #fff;
  border-bottom-color: #e6edf5;
}

.titlebar .tb-icon,
.rail-avatar,
.upgrade-logo {
  border-radius: 8px;
  background: linear-gradient(135deg, #1f2937 0%, #334155 100%);
  color: #f8d66d;
}

.rail,
.subnav {
  background: #f8fafc;
}

.rail-item,
.subnav-link,
.settings-tab {
  border-radius: 7px;
}

.rail-item:hover,
.subnav-link:hover,
.settings-tab:hover {
  background: #edf2f7;
}

.rail-item.active,
.subnav-link.active,
.settings-tab.on {
  background: var(--sidebar-active);
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
}

.content {
  background: #f8fafc;
}

.content-header {
  padding: 18px 28px 10px;
}

.content-toolbar {
  gap: 10px;
  padding: 8px 28px 18px;
}

.btn,
.client-dialog > .modal-footer .btn,
.upgrade-actions .btn-outline,
.access-detail-footer .btn.btn-primary-dark {
  border-radius: 7px;
}

.btn-primary-dark,
.btn-blue,
.client-dialog > .modal-footer .btn.btn-primary-dark,
.client-dialog > .modal-footer .btn.btn-confirm-dark,
.access-detail-footer .btn.btn-primary-dark,
.app-frame--v2 .asset-start-btn {
  background: var(--primary);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

.btn-primary-dark:hover,
.btn-blue:hover,
.client-dialog > .modal-footer .btn.btn-primary-dark:hover,
.client-dialog > .modal-footer .btn.btn-confirm-dark:hover,
.access-detail-footer .btn.btn-primary-dark:hover,
.app-frame--v2 .asset-start-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.26);
}

.client-filter-select,
.search-wrap,
.office-add-row input,
.client-select-trigger,
.client-dialog > .modal-body select,
.client-dialog > .modal-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.client-dialog > .modal-body textarea {
  border-radius: 7px;
  border-color: #d8e0ea;
}

.search-wrap {
  min-width: 260px;
  box-shadow: none;
}

.client-filter-select:focus,
.search-wrap:focus-within,
.office-add-row input:focus,
.client-select-trigger:focus,
.client-dialog > .modal-body select:focus,
.client-dialog > .modal-body input:focus,
.client-dialog > .modal-body textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.table-data {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(20, 32, 52, 0.05);
}

.table-data thead th {
  color: #475569;
  background: #f8fafc;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.table-data tbody td {
  color: #1f2937;
  border-bottom-color: #eef2f7;
}

.table-data tbody tr:hover td {
  background: #f4f8ff;
}

.file-ico {
  border-radius: 7px;
  background: #eef4ff;
  color: var(--primary);
}

.file-ico--folder {
  background: #fff7ed;
  color: #c2410c;
}

.status-pill {
  border-radius: 6px;
}

.status-pill.is-success {
  background: #ecfdf5;
  color: var(--accent);
}

.folder-stat {
  min-width: 220px;
}

.folder-stat__nums span,
.folder-stat__nums i,
.folder-stat__pct {
  font-size: 20px;
}

.folder-stat .sync-progress-track {
  height: 10px;
  border: 0;
  width: 132px;
}

/* 2026-07 personal directory table review */
.table-data--personal-cloud {
  table-layout: fixed;
  width: 100%;
}

.table-data--personal-cloud .pc-col-name { width: 30%; }
.table-data--personal-cloud .pc-col-format { width: 8%; }
.table-data--personal-cloud .pc-col-size { width: 8%; }
.table-data--personal-cloud .pc-col-time { width: 17%; }
.table-data--personal-cloud .pc-col-sync { width: 18%; }
.table-data--personal-cloud .pc-col-stock { width: 15%; }
.table-data--personal-cloud .pc-col-action { width: 12%; }

.table-data--personal-cloud th,
.table-data--personal-cloud td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-data--personal-cloud,
.table-data--personal-cloud thead,
.table-data--personal-cloud thead th {
  overflow: visible;
}

.table-data--personal-cloud td:nth-child(5),
.table-data--personal-cloud td:nth-child(6) {
  overflow: visible;
}

.table-data--personal-cloud td {
  height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
  vertical-align: middle;
}

.table-data--personal-cloud .file-name-cell,
.table-data--personal-cloud .file-name-cell > span:last-child {
  min-width: 0;
}

.table-data--personal-cloud .file-name-cell > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-data--personal-cloud .directory-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-data .file-name-cell > span:last-child,
.table-data .tree-name,
.table-data .asset-row-actions {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-data--cloud-dir {
  table-layout: fixed;
}

.table-data--cloud-dir th,
.table-data--cloud-dir td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-data--cloud-dir th:nth-child(1),
.table-data--cloud-dir td:nth-child(1) { width: 42%; }
.table-data--cloud-dir th:nth-child(2),
.table-data--cloud-dir td:nth-child(2) { width: 12%; }
.table-data--cloud-dir th:nth-child(3),
.table-data--cloud-dir td:nth-child(3) { width: 22%; }
.table-data--cloud-dir th:nth-child(4),
.table-data--cloud-dir td:nth-child(4) { width: 12%; }
.table-data--cloud-dir th:nth-child(5),
.table-data--cloud-dir td:nth-child(5) { width: 12%; }

.table-data--shared-dir th:nth-child(1),
.table-data--shared-dir td:nth-child(1) {
  width: 6%;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
  overflow: visible;
  text-overflow: clip;
}
.table-data--shared-dir th:nth-child(2),
.table-data--shared-dir td:nth-child(2) { width: 29%; }
.table-data--shared-dir th:nth-child(3),
.table-data--shared-dir td:nth-child(3) { width: 10%; }
.table-data--shared-dir th:nth-child(4),
.table-data--shared-dir td:nth-child(4) { width: 10%; }
.table-data--shared-dir th:nth-child(5),
.table-data--shared-dir td:nth-child(5) { width: 18%; }
.table-data--shared-dir th:nth-child(6),
.table-data--shared-dir td:nth-child(6) { width: 11%; }
.table-data--shared-dir th:nth-child(7),
.table-data--shared-dir td:nth-child(7) { width: 16%; }

.shared-check {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}

.table-data--team-dir th:nth-child(1),
.table-data--team-dir td:nth-child(1) { width: 40%; }
.table-data--team-dir th:nth-child(2),
.table-data--team-dir td:nth-child(2) { width: 12%; }
.table-data--team-dir th:nth-child(3),
.table-data--team-dir td:nth-child(3) { width: 10%; }
.table-data--team-dir th:nth-child(4),
.table-data--team-dir td:nth-child(4) { width: 24%; }
.table-data--team-dir th:nth-child(5),
.table-data--team-dir td:nth-child(5) { width: 14%; }

.table-data--remote-dir th:nth-child(1),.table-data--remote-dir td:nth-child(1){width:34%}
.table-data--remote-dir th:nth-child(2),.table-data--remote-dir td:nth-child(2){width:10%}
.table-data--remote-dir th:nth-child(3),.table-data--remote-dir td:nth-child(3){width:10%}
.table-data--remote-dir th:nth-child(4),.table-data--remote-dir td:nth-child(4){width:20%}
.table-data--remote-dir th:nth-child(5),.table-data--remote-dir td:nth-child(5){width:14%}
.table-data--remote-dir th:nth-child(6),.table-data--remote-dir td:nth-child(6){width:12%}

.asset-file-table {
  table-layout: fixed;
}

.asset-file-table th:nth-child(1),
.asset-file-table td:nth-child(1) { width: 34%; }
.asset-file-table th:nth-child(2),
.asset-file-table td:nth-child(2) { width: 17%; }
.asset-file-table th:nth-child(3),
.asset-file-table td:nth-child(3) { width: 17%; }
.asset-file-table th:nth-child(4),
.asset-file-table td:nth-child(4) { width: 10%; }
.asset-file-table th:nth-child(5),
.asset-file-table td:nth-child(5) {
  width: 22%;
  overflow: visible;
  text-overflow: clip;
}

.asset-file-table th,
.asset-file-table td {
  vertical-align: middle;
}

.asset-file-table .asset-row-actions {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.asset-file-table .asset-row-actions-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.asset-file-table .asset-row-actions .link {
  flex: 0 0 auto;
  margin-right: 0;
  font-size: 13px;
}

.table-data--personal-cloud .link {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 6px;
  border-radius: 5px;
}

.table-data--personal-cloud .link:not(.is-disabled):hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.table-data--personal-cloud .th-filter-btn::before {
  background: linear-gradient(to bottom, transparent 0 2px, #667085 2px 4px, transparent 4px 6px, #667085 6px 8px, transparent 8px 10px, #667085 10px 12px, transparent 12px);
}

.table-data--personal-cloud .th-filter-btn:hover::before,
.table-data--personal-cloud .dropdown-filter.has-value .th-filter-btn::before {
  background: linear-gradient(to bottom, transparent 0 2px, #2563eb 2px 4px, transparent 4px 6px, #2563eb 6px 8px, transparent 8px 10px, #2563eb 10px 12px, transparent 12px);
}

.sync-progress {
  min-width: 0;
  width: min(100%, 168px);
  gap: 7px;
}

.sync-progress-track {
  width: 76px;
  height: 6px;
  flex: 0 0 76px;
  background: #edf1f6;
}

.sync-progress small {
  min-width: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.sync-progress .sync-progress-track i,
.sync-progress.is-done .sync-progress-track i,
.sync-progress.is-running .sync-progress-track i,
.sync-progress.is-wait .sync-progress-track i,
.sync-progress.is-error .sync-progress-track i {
  background: var(--primary);
}

.folder-stat {
  min-width: 0;
  width: min(100%, 178px);
}

.folder-stat__nums {
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
  font-weight: 650;
}

.folder-stat__num {
  font-size: 17px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.folder-stat__nums span.folder-stat__num {
  font-size: 17px;
}

.folder-stat__nums span.folder-stat__num--total { color: #344054; }
.folder-stat__nums span.folder-stat__num--completed { color: #2563eb; }
.folder-stat__nums span.folder-stat__num--pending { color: #0f766e; }
.folder-stat__nums span.folder-stat__num--failed { color: #dc2626; }

.folder-stat__nums i {
  color: #98a2b3;
  font-size: 14px;
  font-weight: 500;
}

.folder-stat__barrow {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.folder-stat .sync-progress-track {
  width: 100%;
  height: 6px;
  border: 0;
  background: #eef2f6;
}

.folder-stat .sync-progress-track i {
  background: var(--primary);
}

.folder-stat__pct {
  color: #8a94a6;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stock-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  gap: 8px;
}

.stock-cell--fail {
  display: flex;
  align-items: center;
  gap: 0;
}

.status-pill--with-tip {
  gap: 5px;
  padding-right: 6px;
}

.stock-fail-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(217, 45, 32, 0.12);
  color: #b42318;
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  outline: none;
}

.stock-fail-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 150px;
  max-width: 220px;
  padding: 7px 9px;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  white-space: normal;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity .15s, transform .15s;
}

.stock-fail-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #111827;
  opacity: 0;
  pointer-events: none;
  z-index: 81;
  transition: opacity .15s;
}

.stock-fail-tip:hover::after,
.stock-fail-tip:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.stock-fail-tip:hover::before,
.stock-fail-tip:focus::before {
  opacity: 1;
}

.personal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.stock-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #2563eb;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .16s, background .16s, color .16s;
}

.stock-retry:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.stock-retry:disabled,
.stock-retry[aria-disabled="true"] {
  border-color: transparent;
  background: transparent;
  color: #b6bdc8;
  cursor: not-allowed;
  box-shadow: none;
}

.stock-retry:disabled:hover,
.stock-retry[aria-disabled="true"]:hover {
  border-color: transparent;
  background: transparent;
  color: #b6bdc8;
}

.field-required {
  color: #dc2626;
  font-weight: 700;
}

.team-folder-row > span {
  min-width: 92px;
}

#teamFolderNameV2.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.team-folder-error {
  min-height: 18px;
  line-height: 18px;
}

/* Targeted review fixes: page-level dialogs and personal directory density */
.page-dialog-v2 {
  width: min(420px, 88vw);
}

.page-dialog-v2 .modal-body p {
  margin: 0;
  color: #344054;
  line-height: 1.7;
}

.page-dialog-input-v2 {
  width: 100%;
  height: 36px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  box-sizing: border-box;
  outline: none;
}

.page-dialog-input-v2:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

#officeRemoveKeepV2[hidden],
#officeRemoveModalV2 [data-office-remove-close][hidden] {
  display: none !important;
}

.table-data--personal-cloud {
  font-size: 12px;
}

.table-data--personal-cloud .pc-col-name { width: 20%; }
.table-data--personal-cloud .pc-col-format { width: 7%; }
.table-data--personal-cloud .pc-col-size { width: 6%; }
.table-data--personal-cloud .pc-col-time { width: 11%; }
.table-data--personal-cloud .pc-col-sync { width: 15%; }
.table-data--personal-cloud .pc-col-stock { width: 12%; }
.table-data--personal-cloud .pc-col-tags { width: 14%; }
.table-data--personal-cloud .pc-col-action { width: 15%; }

.table-data--personal-cloud th,
.table-data--personal-cloud td,
.table-data--personal-cloud .file-name-cell,
.table-data--personal-cloud .personal-actions,
.table-data--personal-cloud .status-pill,
.table-data--personal-cloud .stock-retry,
.table-data--personal-cloud .sync-progress {
  white-space: nowrap;
}

.table-data--personal-cloud td {
  height: 62px;
  padding: 8px 10px;
}

.table-data--personal-cloud .file-name-cell {
  gap: 6px;
}

.table-data--personal-cloud .personal-actions {
  display: inline-flex;
  max-width: 100%;
  gap: 3px 2px;
  /* 按钮过多时在单元格内换行，避免操作栏超出表格边框（DS-PC000760）。 */
  flex-wrap: wrap;
}

.table-data--personal-cloud td:last-child { min-width: 230px; }
.table-data--personal-cloud .personal-actions--folder { min-width: 180px; }
.table-th-help{position:relative;display:inline-block;cursor:help;border-bottom:1px dotted #98a2b3}
.table-th-help::after{content:attr(data-tooltip);position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%) translateY(-2px);width:max-content;max-width:250px;padding:7px 10px;border:1px solid #d9e1ee;border-radius:4px;background:#1f2937;color:#fff;font-size:12px;font-weight:400;line-height:1.45;letter-spacing:0;text-transform:none;white-space:normal;text-align:left;box-shadow:0 4px 12px rgba(16,24,40,.18);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .14s ease,transform .14s ease,visibility .14s ease;z-index:60}
.table-th-help:hover::after,.table-th-help:focus::after{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}

.table-data--personal-cloud .stock-retry {
  height: 22px;
  padding: 0 6px;
  font-size: 11px;
}

/* 操作列宽度有限，“选择目录同步到本地”等长按钮会溢出遮挡相邻内容：
   截断为省略号并配合 title 悬浮展示全部文字（DS-PC000798）。 */
.table-data--personal-cloud .personal-actions .stock-retry {
  display: block;
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* DS-PC001025：本机无权限的加密文件——整行置灰、按钮禁用、文件名旁打“无权限”标识。 */
.table-data--personal-cloud tr.is-denied td { color: #98a2b3; }
.table-data--personal-cloud tr.is-denied .file-name-cell,
.table-data--personal-cloud tr.is-denied .personal-actions .stock-retry { opacity: .55; filter: grayscale(.6); }
.table-data--personal-cloud tr.is-denied .file-name-cell { cursor: not-allowed; }
.asset-denied-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff1f0;
  color: #c4322d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: 1px;
}

.table-data--personal-cloud .folder-stat {
  width: 150px;
}

.table-data--personal-cloud .folder-stat__nums {
  gap: 3px;
  margin-bottom: 6px;
}

.table-data--personal-cloud .folder-stat__nums span.folder-stat__num {
  font-size: 14px;
}

.table-data--personal-cloud .folder-stat__nums i {
  font-size: 12px;
}

.table-data--personal-cloud .folder-stat__barrow {
  grid-template-columns: minmax(70px, 1fr) 30px;
  gap: 6px;
}

.table-data--personal-cloud .folder-stat__pct {
  font-size: 11px;
}

/* 数据资产：资产搜索与内嵌传输 */
.asset-search-page {
  overflow: hidden;
  padding: 0 28px 26px;
  box-sizing: border-box;
}

.asset-search-head {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 10px;
}

.asset-search-head p,
.asset-search-head h1,
.asset-search-head span { margin: 0; }
.asset-search-head p { margin-bottom: 5px; color: #5b79d1; font-size: 11px; font-weight: 700; }
.asset-search-head h1 { color: #202a3c; font-size: 24px; line-height: 1.2; }
.asset-search-head span { display: block; margin-top: 7px; color: #7c899b; font-size: 12px; }
.asset-search-head-actions { display: flex; align-items: center; gap: 7px; }
.asset-search-head-actions button,
.asset-search-head-actions a { padding: 8px 12px; border: 1px solid #cbd6e4; border-radius: 6px; color: #4f6fc3; background: #fff; cursor: pointer; font-size: 11px; text-decoration: none; }
.asset-search-head-actions button:first-child { border-color: #5877cd; color: #fff; background: #5877cd; }

/* DS-PC000779（真机第二轮）：客户端 WebView2 实测 1455px 宽窗口下筛选行
   （格式/时间/业务域/敏感度四个下拉+重置）整体排到窗口右缘之外——仅靠
   ≤1100px 媒体查询换行时，缩放/DPI 组合可能命中不换行的默认分支，且
   flex 不换行时 advanced(flex:0 0 auto) 会被直接推出容器。改为常驻
   flex-wrap：宽屏一行放得下时 wrap 不触发（零影响），窄窗口自动折行，
   任何视口都不会横向溢出。 */
.asset-search-query-row { display:flex; flex-wrap:wrap; flex-shrink:0; align-items:stretch; gap:8px; margin-bottom:10px; }

.asset-search-bar {
  display: grid;
  flex: 1 1 420px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid #aebdd4;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(31, 45, 70, .05);
}

.asset-search-bar > span { padding-left: 14px; color: #6881be; font-size: 18px; }
.asset-search-bar input { min-width: 0; height: 46px; border: 0; outline: 0; color: #28374e; background: transparent; font: inherit; }
.asset-search-bar button { align-self: stretch; min-width: 82px; border: 0; color: #fff; background: #5877cd; cursor: pointer; font-weight: 700; }

.asset-search-filters { display:flex; min-width:0; gap:4px; overflow-x:auto; padding:5px 0 7px; }
.asset-search-advanced { display:flex; flex:0 0 auto; flex-wrap:wrap; max-width:100%; align-items:stretch; gap:6px; min-width:0; padding:0; }
.asset-search-advanced label { position:relative; display:flex; flex:0 0 auto; min-width:0; }
.asset-search-advanced label span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
/* DS-PC000779：默认项最长 5 个汉字（全部业务域/全部敏感度），118px 在
   WebView2 实机渲染下会被箭头区裁掉末字，统一放宽到 126px；且容器/label/
   select 都不允许 flex 收缩——此前 min-width:0 允许行内空间不足时把 select
   压到 126px 以下，放宽宽度后默认文字仍被裁。 */
.asset-search-advanced select { flex:0 0 auto; width:126px; height:48px; padding:0 28px 0 9px; border:1px solid #cbd6e4; border-radius:7px; color:#4e5d72; background:#fff; font-size:12px; }
.asset-search-advanced button { height:48px; padding:0 12px; border:1px solid #cbd6e4; border-radius:7px; color:#66758b; background:#fff; cursor:pointer; white-space:nowrap; }
/* DS-PC000780：标签个数多时文字换行会显示错乱——按钮内文字不换行，
   容器已有 overflow-x:auto，放不下的靠横向滚动查看。 */
.asset-search-filters button { padding: 6px 12px; border: 1px solid transparent; border-radius: 5px; color: #758196; background: transparent; cursor: pointer; font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
.asset-search-filters button small { margin-left: 3px; color: #98a2b3; font-size: 11px; }
.asset-search-filters button.is-active { border-color: #ccd8ed; color: #4d6ec4; background: #edf2fc; font-weight: 700; }

.asset-search-layout {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(360px, .72fr) minmax(520px, 1.28fr);
  gap: 14px;
  min-height: 0;
}

.asset-results-panel,
.knowledge-qa-panel { min-height: 0; overflow: hidden; border: 1px solid #cbd6e4; border-radius: 7px; background: #fff; box-shadow: 0 2px 5px rgba(31, 45, 70, .06); }
.asset-results-panel { display: flex; flex-direction: column; }
.asset-results-panel > header { display:flex; flex-shrink:0; min-width:0; flex-direction:column; padding:8px 14px 0; border-bottom:1px solid #e3e8f0; }
.asset-results-heading { display:flex; min-height:34px; align-items:center; justify-content:space-between; gap:10px; }
.asset-results-panel > header strong,
.asset-results-panel > header span { display: block; }
.asset-results-panel > header strong { color: #344156; font-size: 13px; }
.asset-results-panel > header span { margin-top: 3px; color: #909aab; font-size: 10px; }
.asset-results-panel select { height: 30px; border: 1px solid #d8e0ea; border-radius: 5px; color: #68758a; background: #fff; font-size: 11px; }
.asset-results-list { flex: 1; min-height: 0; overflow: auto; }

.asset-result-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 13px 14px; border-bottom: 1px solid #e8ecf2; transition: background .15s, box-shadow .15s; }
.asset-result-item:last-child { border-bottom: 0; }
.asset-result-item.is-selected { background: #f6f8fe; box-shadow: inset 3px 0 0 #607ed0; }
.asset-result-item[hidden] { display: none !important; }
[data-asset-id].is-location-target { animation: datasafe-location-pulse 2.4s ease-out; outline: 2px solid #6b8de3; outline-offset: -2px; }
@keyframes datasafe-location-pulse { 0%, 35% { background: #e7efff; } 100% { background: transparent; } }
.asset-result-item.is-cited { background: #eef3ff; }
.asset-result-icon { display: flex; width: 34px; height: 38px; align-items: center; justify-content: center; border-radius: 5px; color: #526fb9; background: #eaf0fc; font-size: 11px; font-weight: 800; }
.asset-result-icon--policy { color: #a2712c; background: #fbf1df; }
.asset-result-icon--record { color: #358361; background: #e8f5ee; }
.asset-result-main { min-width: 0; }
.asset-result-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.asset-result-title strong { overflow: hidden; color: #334057; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.asset-result-title span,
.asset-result-title em { flex-shrink: 0; padding: 2px 5px; border-radius: 3px; color: #687a9d; background: #eff3f9; font-size: 9px; font-style: normal; }
.asset-result-main p { display: -webkit-box; overflow: hidden; margin: 7px 0; color: #69768a; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.asset-result-meta,
.asset-result-tags { display: flex; flex-wrap: wrap; gap: 10px; color: #939dad; font-size: 10px; }
.asset-result-meta span:nth-child(2) { display: none; }
.asset-result-tags { gap: 5px; margin-top: 7px; }
.asset-result-tags span { padding: 2px 6px; border-radius: 3px; color: #7383a1; background: #f4f6f9; }
.asset-result-actions { display: flex; grid-column: 2; justify-content: flex-start; gap: 7px; }
.asset-result-actions button,
.asset-result-actions a { min-width: 74px; padding: 5px 8px; border: 1px solid #d5deec; border-radius: 5px; color: #5573c4; background: #fff; cursor: pointer; font-size: 10px; text-align: center; text-decoration: none; }
.asset-results-panel.is-context-picking { border-color: #6d87cf; box-shadow: 0 0 0 3px rgba(91, 121, 209, .12); }
.asset-results-panel.is-context-picking > header:after { margin-left: auto; padding: 4px 7px; border-radius: 4px; color: #5472c3; background: #edf2fc; content: "选择资产加入问答"; font-size: 9px; }
.asset-results-panel.is-context-picking select { display: none; }

.knowledge-qa-panel { position: relative; display: flex; flex-direction: column; }
.knowledge-qa-panel > header { display: flex; flex-shrink: 0; align-items: center; gap: 10px; min-height: 66px; padding: 0 18px; border-bottom: 1px solid #e3e8f0; }
.knowledge-mark { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; color: #f8d66d; background: #26384f; font-size: 14px; font-weight: 800; }
.knowledge-head-title { min-width: 0; flex: 1; }
.knowledge-qa-panel > header strong,
.knowledge-qa-panel > header span { display: block; }
.knowledge-qa-panel > header strong { color: #334057; font-size: 14px; }
.knowledge-qa-panel > header span { margin-top: 3px; color: #8a96a8; font-size: 10px; }
.knowledge-head-actions { display: flex; gap: 6px; }
.knowledge-head-actions button { padding: 6px 9px; border: 1px solid #d7dfeb; border-radius: 5px; color: #64738b; background: #fff; cursor: pointer; font-size: 10px; }
.knowledge-head-actions button.is-primary { border-color: #5877cd; color: #fff; background: #5877cd; }
/* DS-PC000948：问答记录是绝对定位浮层，会话多时无限向下生长、盖住输入区；
   限高后内部滚动。 */
.knowledge-history { position: absolute; top: 58px; right: 18px; z-index: 5; width: 250px; max-height: 340px; overflow-y: auto; padding: 7px; border: 1px solid #d4ddea; border-radius: 8px; background: #fff; box-shadow: 0 12px 32px rgba(31, 45, 70, .16); }
.knowledge-history > div { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 7px; color: #425069; font-size: 11px; }
.knowledge-history > div button { border: 0; color: #8c97a8; background: transparent; cursor: pointer; font-size: 16px; }
.knowledge-history > button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 7px; border: 0; border-radius: 5px; color: #536077; background: transparent; cursor: pointer; text-align: left; }
.knowledge-history > button:hover { background: #f3f6fb; }
.knowledge-history > button[aria-current="true"] { background: #eaf0fd; color: #2f54d0; }
.knowledge-history > button span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-history > button small { flex-shrink: 0; color: #9aa3b2; font-size: 8px; }
.knowledge-context { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 14px; margin: 10px 18px 0; padding: 9px 11px; border-left: 2px solid #6c85cc; background: #f5f7fc; }
.knowledge-context > div { min-width: 0; }
.knowledge-context span,
.knowledge-context strong,
.knowledge-context small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-context span { color: #8490a2; font-size: 9px; }
.knowledge-context strong { margin: 4px 0 3px; color: #42516a; font-size: 11px; }
.knowledge-context small { color: #929cad; font-size: 9px; }
.knowledge-context > button { flex-shrink: 0; border: 0; color: #5875c4; background: transparent; cursor: pointer; font-size: 9px; }
.knowledge-dialog { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px; }
.knowledge-answer { max-width: 92%; padding: 14px 16px; border: 1px solid #dce3ee; border-radius: 12px 12px 12px 4px; background: #f7f9fc; box-sizing: border-box; }
.knowledge-answer + .knowledge-answer { margin-top: 10px; }
.knowledge-answer-head { display: flex; align-items: center; justify-content: space-between; }
.knowledge-answer-head > button { border: 0; color: #8491a5; background: transparent; cursor: pointer; font-size: 9px; }
.knowledge-answer-label { color: #536ea9; font-size: 10px; font-weight: 700; }
.knowledge-answer p { margin: 8px 0; color: #445168; font-size: 12px; line-height: 1.7; }
.knowledge-answer-points { display: grid; gap: 5px; margin: 10px 0; color: #5f6d82; font-size: 11px; }
.knowledge-citations { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #d7dfec; }
.knowledge-citations > strong { width: 100%; color: #6d798c; font-size: 9px; }
.knowledge-citations button { display: inline-flex; max-width: 100%; align-items: center; gap: 5px; padding: 5px 7px; border: 0; border-radius: 4px; color: #5573c3; background: #eaf0fb; cursor: pointer; font-size: 9px; }
.knowledge-citations button span { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 3px; color: #fff; background: #6a84cc; }
.knowledge-citations button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-citations button small { flex-shrink: 0; color: #7f8ca1; }
/* 知识问答参考文件卡：正文摘录 + 预测行为标签（DS-PC000847）。 */
.knowledge-citations .knowledge-citation { display: flex; width: 100%; flex-direction: column; gap: 5px; padding: 7px 8px; border: 1px solid #d7dfec; border-radius: 5px; background: #f8faff; cursor: pointer; text-align: left; }
.knowledge-citation .knowledge-citation-head { display: flex; min-width: 0; align-items: center; gap: 6px; }
.knowledge-citation .knowledge-citation-head strong { overflow: hidden; color: #3f5a92; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-citation .knowledge-citation-head small { flex-shrink: 0; color: #7f8ca1; }
.knowledge-citation .knowledge-citation-head em { flex-shrink: 0; padding: 1px 5px; border-radius: 3px; color: #2c6a4a; background: #e5f4ec; font-size: 9px; font-style: normal; }
.knowledge-citation .knowledge-citation-actions { display: flex; gap: 4px; margin-left: auto; }
.knowledge-citation .knowledge-citation-actions button { flex-shrink: 0; padding: 3px 7px; border: 1px solid #c6d4ec; background: #fff; }
.knowledge-citation .knowledge-citation-excerpt { display: -webkit-box; margin: 0; overflow: hidden; color: #5d6b80; font-size: 10px; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.knowledge-next-actions { margin-top: 11px; padding-top: 10px; border-top: 1px dashed #d7dfec; }
.knowledge-next-actions > span { color: #7c899c; font-size: 9px; }
.knowledge-next-actions > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.knowledge-next-actions button { padding: 5px 9px; border: 1px solid #cdd8ec; border-radius: 999px; color: #5573c3; background: #fff; cursor: pointer; font-size: 9px; }
.knowledge-question { max-width: 78%; margin: 12px 0 10px auto; padding: 9px 12px; border-radius: 11px 11px 3px 11px; color: #fff; background: #607bc6; font-size: 11px; line-height: 1.55; }
/* DS-PC000775：提问气泡内本地附件文件名附注。 */
.knowledge-question-assets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.knowledge-question-asset { display: inline-flex; align-items: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 7px; border-radius: 8px; background: rgba(255,255,255,.22); font-size: 10px; }
.knowledge-question small { display: block; margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, .35); opacity: .85; font-size: 10px; }
.knowledge-thinking { display: flex; width: fit-content; align-items: center; gap: 7px; margin: 8px 0; padding: 9px 12px; border-radius: 10px; color: #768399; background: #f5f7fa; font-size: 10px; }
.knowledge-thinking i { width: 6px; height: 6px; border-radius: 50%; background: #607bc6; animation: knowledge-pulse .8s infinite alternate; }
@keyframes knowledge-pulse { to { opacity: .25; } }
.knowledge-suggestions { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 20px 10px; }
.knowledge-suggestions > span { color: #929daf; font-size: 9px; }
.knowledge-suggestions button { padding: 5px 8px; border: 1px solid #d9e1ed; border-radius: 999px; color: #65748b; background: #fff; cursor: pointer; font-size: 9px; }
.knowledge-composer { flex-shrink: 0; margin: 0 20px 16px; padding: 10px 12px; border: 1px solid #b9c6d9; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(31, 45, 70, .05); }
.knowledge-context-files { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 9px; }
.knowledge-context-files > button { display: grid; grid-template-columns: 22px minmax(56px, auto) 14px; align-items: center; gap: 6px; max-width: 160px; padding: 5px 6px; border: 1px solid #dce3ed; border-radius: 6px; color: #536078; background: #f7f9fc; cursor: pointer; }
.knowledge-context-files > button span { display: flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 4px; color: #5573c3; background: #e8eefb; font-size: 9px; }
.knowledge-context-files > button strong { overflow: hidden; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-context-files > button i { color: #8f99aa; font-style: normal; }
.knowledge-composer textarea { width: 100%; min-height: 54px; resize: none; border: 0; outline: 0; color: #39485e; background: transparent; box-sizing: border-box; font: inherit; font-size: 12px; line-height: 1.6; }
.knowledge-composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.knowledge-composer-tools { display: flex; align-items: center; gap: 9px; }
.knowledge-composer-tools > button { width: auto; height: 28px; padding: 0 9px; border: 1px solid #d8e0eb; border-radius: 999px; color: #586983; background: #f8fafc; cursor: pointer; font-size: 9px; }
.knowledge-composer-tools > span { display: flex; align-items: center; gap: 5px; color: #9aa3b2; font-size: 9px; }
.knowledge-composer-tools > span i { width: 5px; height: 5px; border-radius: 50%; background: #37a46f; }
.knowledge-composer-bar > button { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #5877cd; cursor: pointer; font-size: 15px; }
.knowledge-composer-bar > button:disabled { background: #c9d1df; cursor: default; }

.asset-library-modal { z-index: 1260; }
.asset-library-dialog { width: min(720px, calc(100vw - 48px)); max-width: 720px; }
.asset-library-dialog > .modal-head > div strong,
.asset-library-dialog > .modal-head > div small { display: block; }
.asset-library-dialog > .modal-head > div strong { color: #344157; font-size: 14px; }
.asset-library-dialog > .modal-head > div small { margin-top: 4px; color: #8c97a8; font-size: 10px; font-weight: 400; }
.asset-library-dialog > .modal-head > button { width: 28px; height: 28px; border: 0; color: #7f8b9c; background: transparent; cursor: pointer; font-size: 18px; }
.asset-library-toolbar { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #e4e9f0; background: #fbfcfe; }
.asset-library-toolbar input { min-width: 0; height: 34px; flex: 1; padding: 0 10px; border: 1px solid #ccd7e5; border-radius: 5px; color: #3e4d63; outline: none; }
.asset-library-toolbar span { color: #7e8b9d; font-size: 10px; white-space: nowrap; }
.asset-library-picker-list { min-height: 270px; max-height: 410px; overflow: auto; }
.asset-library-option { display: grid; grid-template-columns: 18px 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 58px; padding: 0 16px; border-bottom: 1px solid #e8edf3; cursor: pointer; }
/* DS-PC001009：搜索过滤靠 row.hidden 生效，但上面的 display:grid 会覆盖 UA 样式
   表的 [hidden]{display:none}，行根本藏不掉（同 DS-PC000794/801 的 .asset-result-item）。 */
.asset-library-option[hidden] { display: none !important; }
.asset-library-option:hover { background: #f7f9fd; }
.asset-library-option input { width: 14px; height: 14px; accent-color: #5877cd; }
.asset-library-option > i { display: flex; width: 34px; height: 30px; align-items: center; justify-content: center; border-radius: 5px; color: #4f6fbd; background: #e9effc; font-size: 9px; font-style: normal; font-weight: 700; }
.asset-library-option > span { min-width: 0; }
.asset-library-option strong,
.asset-library-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-library-option strong { color: #425169; font-size: 11px; }
.asset-library-option small { margin-top: 4px; color: #8e99aa; font-size: 9px; }
.asset-library-option em { padding: 3px 6px; border-radius: 3px; color: #8c6829; background: #faf2e4; font-size: 9px; font-style: normal; }
.asset-library-empty { padding: 70px 20px; color: #8995a7; text-align: center; font-size: 11px; }
/* DS-PC000770：目录分组改为 details/summary 原生收起展开（默认收起，点组头展开）。 */
.asset-library-directory-group { border-bottom: 1px solid #e8edf3; }
.asset-library-directory-group > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; list-style: none; user-select: none; }
.asset-library-directory-group > summary::-webkit-details-marker { display: none; }
.asset-library-directory-group > summary:hover { background: #f7f9fd; }
.asset-library-directory-group > summary span { font-size: 13px; }
.asset-library-directory-group > summary strong { color: #425169; font-size: 12px; }
.asset-library-directory-group > summary small { color: #8e99aa; font-size: 10px; }
.asset-library-directory-group > summary > i { margin-left: auto; color: #97a3b4; font-size: 10px; font-style: normal; transition: transform .15s; }
.asset-library-directory-group[open] > summary > i { transform: rotate(90deg); }
.asset-library-group-options { border-top: 1px solid #eef2f7; }
.asset-library-group-options .asset-library-empty { padding: 24px 20px; }
.assistant-asset-picker .asset-library-directory-group { margin: 6px 0; border: 1px solid #e3e9f2; border-radius: 10px; background: #fff; overflow: hidden; }
.assistant-asset-picker .asset-library-directory-group > summary { padding: 12px 14px; }
.assistant-asset-picker .asset-library-group-options .asset-library-option { border-bottom: 0; }
.assistant-asset-picker .asset-library-group-options .asset-library-empty { padding: 34px 20px; }
/* 工作区数据加载中骨架（DS-PC000843）：避免资产管理页先闪现空状态。 */
.asset-workspace-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 90px 20px; color: #8995a7; text-align: center; }
.asset-workspace-loading strong { color: #425169; font-size: 13px; }
.asset-workspace-loading small { font-size: 10px; }
.asset-workspace-loading-dot { width: 22px; height: 22px; margin-bottom: 6px; border: 2px solid #dbe2ec; border-top-color: #2f6bff; border-radius: 50%; animation: asset-workspace-loading-spin 0.9s linear infinite; }
@keyframes asset-workspace-loading-spin { to { transform: rotate(360deg); } }
.assistant-asset-picker .asset-library-dialog { display: grid; grid-template-rows: auto auto minmax(260px, 1fr) auto; width: min(820px, calc(100vw - 40px)); max-width: 820px; max-height: min(720px, calc(100vh - 48px)); overflow: hidden; border-radius: 14px; }
.assistant-asset-picker .modal-head { padding: 18px 20px; }
.assistant-asset-picker .asset-library-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto auto; gap: 10px; padding: 14px 20px; }
.assistant-asset-picker .asset-library-toolbar input { height: 38px; border-radius: 7px; font-size: 12px; }
.assistant-asset-picker .asset-library-toolbar .btn { height: 38px; padding: 0 14px; white-space: nowrap; }
.assistant-asset-picker .asset-library-picker-list { min-height: 0; max-height: none; overflow-y: auto; padding: 8px 12px; background: #f8fafc; }
.assistant-asset-picker .asset-library-option { min-height: 64px; margin: 4px 0; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.assistant-asset-picker .asset-library-option:hover { border-color: #cdd9ef; background: #f8faff; }
.assistant-asset-picker .asset-library-option.is-selected { border-color: #7895df; background: #eef3ff; box-shadow: 0 0 0 2px rgba(77, 111, 205, .1); }
.assistant-asset-picker .asset-library-option input { width: 16px; height: 16px; cursor: pointer; }
.assistant-asset-picker .asset-library-option > i { width: 38px; height: 38px; border-radius: 8px; font-size: 11px; }
.assistant-asset-picker .asset-library-option strong { color: #27364d; font-size: 13px; }
.assistant-asset-picker .asset-library-option small { margin-top: 5px; font-size: 10px; }
.assistant-asset-picker .asset-library-option em { justify-self: end; min-width: 42px; text-align: center; }
.assistant-asset-picker .modal-footer { display: flex; align-items: center; gap: 10px; padding: 14px 20px; }
.assistant-asset-picker .assistant-asset-picker-hint { min-width: 0; flex: 1; color: #7b8798; font-size: 10px; }
.assistant-asset-picker .modal-footer .btn { min-width: 88px; height: 38px; }
.assistant-asset-picker .modal-footer .btn:disabled { opacity: .5; cursor: not-allowed; }
.assistant-asset-picker .asset-library-empty strong,.assistant-asset-picker .asset-library-empty span { display: block; }
.assistant-asset-picker .asset-library-empty strong { color: #526176; font-size: 13px; }
.assistant-asset-picker .asset-library-empty span { margin-top: 8px; }
@media (max-width: 760px) {
  .assistant-asset-picker .asset-library-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .assistant-asset-picker .asset-library-toolbar { grid-template-columns: 1fr auto; }
  .assistant-asset-picker .asset-library-toolbar input { grid-column: 1 / -1; }
  .assistant-asset-picker .asset-library-toolbar span { justify-self: end; }
  .assistant-asset-picker .assistant-asset-select-all { display: none; }
  .assistant-asset-picker .asset-library-option { grid-template-columns: 18px 34px minmax(0, 1fr); }
  .assistant-asset-picker .asset-library-option em { display: none; }
  .assistant-asset-picker .assistant-asset-picker-hint { display: none; }
}
.asset-add-toast { position: fixed; right: 24px; bottom: 26px; z-index: 1600; padding: 10px 14px; border: 1px solid #cbd7e6; border-left: 3px solid #5877cd; border-radius: 6px; color: #435168; background: #fff; box-shadow: 0 10px 28px rgba(31, 45, 70, .18); font-size: 11px; }
.asset-add-toast.is-visible { display: block; }

.asset-transfer-panel { flex-shrink: 0; margin: 0 28px 14px; overflow: hidden; border: 1px solid #cbd6e4; border-radius: 7px; background: #fff; box-shadow: 0 2px 5px rgba(31, 45, 70, .05); }
.asset-transfer-panel > summary { display: flex; min-height: 54px; align-items: center; gap: 11px; padding: 0 14px; cursor: pointer; list-style: none; }
.asset-transfer-panel > summary::-webkit-details-marker { display: none; }
.asset-transfer-summary-icon { display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 6px; color: #5573c3; background: #eaf0fc; font-weight: 800; }
.asset-transfer-panel summary > span:nth-child(2) { min-width: 0; flex: 1; }
.asset-transfer-panel summary strong,
.asset-transfer-panel summary small { display: block; }
.asset-transfer-panel summary strong { color: #3d4a60; font-size: 12px; }
.asset-transfer-panel summary small { margin-top: 3px; color: #929cad; font-size: 9px; }
.asset-transfer-summary-status { display: flex; align-items: center; gap: 5px; color: #6f7e94; font-size: 10px; }
.asset-transfer-summary-status i { width: 6px; height: 6px; border-radius: 50%; background: #d39a34; }
.asset-transfer-summary-arrow { color: #8491a4; transition: transform .15s; }
.asset-transfer-panel[open] .asset-transfer-summary-arrow { transform: rotate(180deg); }
.asset-transfer-body { border-top: 1px solid #e6ebf2; }
.asset-transfer-toolbar { display: flex; min-height: 40px; align-items: center; justify-content: space-between; padding: 0 14px; background: #fafbfd; }
.asset-transfer-tabs { display: flex; align-self: stretch; gap: 16px; }
.asset-transfer-tabs button { position: relative; border: 0; color: #7c899b; background: transparent; cursor: pointer; font-size: 10px; }
.asset-transfer-tabs button.is-active { color: #526fbf; font-weight: 700; }
.asset-transfer-tabs button.is-active:after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #5b79d1; content: ""; }
.asset-transfer-tabs b { display: inline-block; min-width: 15px; margin-left: 3px; border-radius: 8px; background: #e8edf9; font-size: 9px; line-height: 15px; }
.asset-transfer-clear { border: 0; color: #71809a; background: transparent; cursor: pointer; font-size: 10px; }
.asset-transfer-list { max-height: 174px; overflow: auto; }
.asset-transfer-item { display: grid; grid-template-columns: 30px minmax(190px, 1fr) minmax(180px, .7fr) auto; gap: 11px; align-items: center; min-height: 56px; padding: 0 14px; border-top: 1px solid #edf0f4; }
.asset-transfer-item:first-child { border-top: 0; }
.asset-transfer-direction { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; color: #5674c3; background: #edf2fc; }
.asset-transfer-file strong,
.asset-transfer-file span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-transfer-file strong { color: #435168; font-size: 11px; }
.asset-transfer-file span { margin-top: 3px; color: #929cad; font-size: 9px; }
.asset-transfer-progress { display: flex; align-items: center; gap: 8px; }
.asset-transfer-progress > div { flex: 1; height: 5px; overflow: hidden; border-radius: 3px; background: #e8edf4; }
.asset-transfer-progress i { display: block; height: 100%; border-radius: inherit; background: #5b79d1; }
.asset-transfer-progress span { min-width: 35px; color: #7f8ba0; font-size: 9px; }
.asset-transfer-state { display: flex; min-width: 60px; align-items: center; justify-content: flex-end; gap: 9px; }
.asset-transfer-state > button { border: 0; color: #5574c7; background: transparent; cursor: pointer; font-size: 10px; }
.asset-transfer-state > em { color: #388463; font-size: 9px; font-style: normal; }
.asset-transfer-item.is-failed .asset-transfer-state > em { color: #ca6c63; }
.asset-transfer-item.is-paused { opacity: .62; }
.asset-transfer-item[hidden] { display: none !important; }
.asset-transfer-empty { padding: 24px; color: #909bad; text-align: center; font-size: 11px; }

/* Asset search keeps secondary information legible at desktop scale. */
.rail-section-label,.asset-results-panel > header span,.asset-result-title em,
.asset-result-tags,.asset-result-actions a,.asset-results-panel.is-context-picking > header:after,
.knowledge-qa-panel > header span,.knowledge-head-actions button,.knowledge-history > button span,
.knowledge-history > button small,.knowledge-context span,.knowledge-context small,
.knowledge-context > button,.knowledge-answer-head > button,.knowledge-answer-label,
.knowledge-citations button,.knowledge-citations i,.knowledge-next-actions > span,
.knowledge-next-actions button,.knowledge-thinking,.knowledge-suggestions > span,
.knowledge-suggestions button,.knowledge-context-files > button span,
.knowledge-context-files > button strong,.knowledge-composer-tools > button,
.knowledge-composer-tools > span,.asset-library-dialog > .modal-head > div small,
.asset-library-toolbar span,.asset-transfer-progress span,.asset-transfer-item > button,
.asset-transfer-item > em { font-size:11px; }

/* DS-PC000779（真机复现终版）：客户端 WebView2 在 150% DPI、默认 1455px 逻辑宽
   窗口下实测，advanced 一行靠右排时右端两个下拉（业务域/敏感度）被裁出窗口
   （截图 779-real-search.png），且 web 端同视口无法复现——WebView2 flex 分配
   与 web 有约百像素差异，仅靠 1100px 断点无法覆盖。把换行规则提到 1500px
   独立分支：视口不足 1500 一律"搜索栏独占一行 + 筛选行整行从左排"，任何
   DPI/缩放/窗口组合下四个下拉都完整可见；≥1500 大屏保持原单行布局。 */
@media (max-width: 1500px) {
  .asset-search-query-row { flex-wrap:wrap; }
  .asset-search-bar { flex-basis:100%; }
  .asset-search-advanced { width:100%; overflow-x:auto; }
}

@media (max-width: 1100px) {
  .asset-search-advanced select, .asset-search-advanced button { height:38px; }
  .asset-search-layout { grid-template-columns: 1fr; overflow: auto; }
  .asset-results-panel,
  .knowledge-qa-panel { min-height: 430px; }
}

@media (max-width: 720px) {
  .asset-search-page { padding-right: 15px; padding-left: 15px; }
  .asset-search-head { align-items: flex-start; flex-direction: column; }
  .asset-search-head-actions { flex-wrap: wrap; }
  .asset-search-advanced { display:grid; grid-template-columns:1fr 1fr; overflow:visible; }
  .asset-search-advanced select, .asset-search-advanced label:nth-child(3) select, .asset-search-advanced button { width:100%; }
  .asset-result-item { grid-template-columns: 36px minmax(0, 1fr); }
  .asset-result-actions { grid-column: 2; flex-direction: row; justify-content: flex-start; }
  .asset-transfer-panel { margin-right: 15px; margin-left: 15px; }
  .asset-transfer-item { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 8px 12px; }
  .asset-transfer-progress { grid-column: 2 / -1; }
}

/* Approval uses the foundation shell while retaining the original records and detail flows. */
.approval-page-content { overflow:auto; background:#f4f6f9; }
.approval-page-content .approval-page-heading { align-items:center; justify-content:flex-start; margin:0 28px; padding:22px 0 14px; border-bottom:1px solid #d7dfe9; }
.approval-page-content .approval-page-heading h1 { margin:0; color:#263247; font-size:22px; }
.approval-page-back { display:flex; width:28px; height:28px; align-items:center; justify-content:center; border:1px solid #d1dae6; border-radius:5px; color:#68768a; background:#fff; text-decoration:none; }
.approval-page-back:hover { border-color:#aab9d1; color:#4e68a9; }
.approval-page-content .content-toolbar--approval { margin:0 28px; padding:12px 0 10px; }
.approval-page-content .content-toolbar--approval .tabs-bar .tab { margin-right:18px; padding:8px 2px; font-size:14px; }
.approval-page-content .content-toolbar--approval .tabs-bar .tab.on { font-size:14px; }
.approval-page-content .content-toolbar--approval .tabs-bar .tab b { display:inline-flex; min-width:18px; height:18px; align-items:center; justify-content:center; margin-left:5px; padding:0 5px; border-radius:9px; color:#7b8799; background:#e9edf3; font-size:10px; font-weight:600; box-sizing:border-box; }
.approval-page-content .content-toolbar--approval .tabs-bar .tab.on b { color:#fff; background:#5b78cf; }
.approval-page-content .content-toolbar .btn-primary-dark { order:2; min-height:34px; border-radius:5px; }
.approval-page-content .content-toolbar .search-wrap { order:3; }
.approval-page-content .approval-filters { min-height:0; padding:0 28px 10px; background:transparent; }
.approval-page-content .approval-filters:empty { display:none; }
.approval-page-content .scroll-area--approval { margin:0 28px 28px; padding:0; overflow:auto; border:1px solid #d3dce8; border-radius:7px; background:#fff; box-shadow:0 2px 8px rgba(31,45,70,.05); }
.approval-page-content .table-data { margin:0; }
.approval-page-content .table-data thead th { background:#f8fafc; color:#58667a; }
.approval-page-content .table-data tbody tr:hover { background:#f8faff; }

@media (max-width:720px) {
  .approval-page-content .approval-page-heading,.approval-page-content .content-toolbar--approval,.approval-page-content .scroll-area--approval { margin-right:15px; margin-left:15px; }
}

/* Approval creation reuses asset and organization data from the foundation. */
.approval-create-dialog { width:min(650px,calc(100vw - 40px)); max-width:650px!important; }
.approval-create-dialog .apply-permission-body { max-height:calc(100vh - 180px); overflow:auto; }
.approval-field-control { display:flex; flex:1; min-width:0; gap:8px; }
.approval-field-control > input,.approval-field-control > select { flex:1; min-width:0; height:38px; padding:0 11px; border:1px solid #d2dae5; border-radius:6px; color:#344157; background:#fff; box-sizing:border-box; outline:none; }
.approval-field-control > input:focus,.approval-field-control > select:focus { border-color:#6f88d4; box-shadow:0 0 0 2px rgba(91,120,207,.12); }
.approval-field-control > .btn { flex:0 0 auto; white-space:nowrap; }
.approval-asset-summary { display:block; margin-top:7px; color:#8792a3; font-size:11px; line-height:1.45; }
.approval-picker-dialog { width:min(760px,calc(100vw - 40px)); max-width:760px!important; }
.approval-picker-body { padding:16px 20px 8px; }
.approval-picker-search { width:100%; height:38px; margin-bottom:12px; padding:0 12px; border:1px solid #d4dce7; border-radius:6px; box-sizing:border-box; outline:none; }
.approval-picker-list { max-height:360px; overflow:auto; border:1px solid #dce3ec; border-radius:7px; background:#fff; }
.approval-picker-option { display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:10px; align-items:center; min-height:58px; padding:8px 13px; border-bottom:1px solid #e8edf3; cursor:pointer; box-sizing:border-box; }
.approval-picker-option:last-child { border-bottom:0; }
.approval-picker-option:hover { background:#f7f9fd; }
.approval-picker-option input { width:15px; height:15px; accent-color:#5877cd; }
.approval-picker-option strong,.approval-picker-option small { display:block; }
.approval-picker-option strong { color:#354258; font-size:13px; }
.approval-picker-option small { margin-top:4px; color:#8b96a6; font-size:11px; }
.approval-picker-option em { padding:3px 7px; border-radius:4px; color:#8a6628; background:#faf1e2; font-size:10px; font-style:normal; }
.approval-org-groups { max-height:360px; overflow:auto; border:1px solid #dce3ec; border-radius:7px; }
.approval-org-group { padding:11px 13px; border-bottom:1px solid #e8edf3; }
.approval-org-group:last-child { border-bottom:0; }
.approval-org-group > strong { display:block; margin-bottom:7px; color:#657187; font-size:11px; }
.approval-org-users { display:flex; flex-wrap:wrap; gap:7px; }
.approval-org-users label { display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border:1px solid #d9e0ea; border-radius:5px; color:#445167; background:#fff; cursor:pointer; font-size:12px; }
.approval-org-users label:has(input:checked) { border-color:#7b93d7; color:#4262b6; background:#f2f5ff; }
.approval-org-users input { accent-color:#5877cd; }
.approval-picker-empty { padding:42px 20px; color:#8e99a9; text-align:center; }

.foundation-office-assistant-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px 8px 9px;
  border: 1px solid rgba(74, 105, 190, 0.42);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #425fba 0%, #6386dd 100%);
  box-shadow: 0 9px 18px rgba(69, 99, 182, 0.2);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.foundation-office-assistant-cta:hover {
  color: #fff;
  background: linear-gradient(135deg, #3655ad 0%, #587bd3 100%);
  box-shadow: 0 12px 22px rgba(69, 99, 182, 0.28);
  transform: translateY(-1px);
}

.foundation-office-assistant-cta:focus-visible {
  outline: 3px solid rgba(91, 121, 209, 0.3);
  outline-offset: 3px;
}

.foundation-office-assistant-cta-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-weight: 700;
}

.foundation-office-assistant-cta span:not(.foundation-office-assistant-cta-icon) {
  min-width: 0;
}

.foundation-office-assistant-cta strong,
.foundation-office-assistant-cta small {
  display: block;
}

.foundation-office-assistant-cta strong {
  font-size: 13px;
  line-height: 1.35;
}

.foundation-office-assistant-cta small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.foundation-office-assistant-cta > i {
  margin-left: 3px;
  font-size: 16px;
  font-style: normal;
}

@media (max-width:680px) {
  .foundation-office-assistant-cta {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  .foundation-office-assistant-cta > i {
    margin-left: auto;
  }
  .settings-integration-note {
    align-items: flex-start;
    flex-direction: column;
  }
}
.asset-tag-cell{display:flex;min-width:150px;flex-direction:column;gap:5px}.asset-tag-cell>small{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.asset-tag-cell>small>i{font-style:normal;color:#667085}.asset-business-tags{display:inline-flex;max-width:220px;flex-wrap:wrap;gap:3px}.asset-business-tag{padding:2px 6px;border:1px solid #d9e3f2;border-radius:10px;background:#f4f7fb;color:#36547c;font-size:11px;font-weight:500;line-height:16px;white-space:nowrap}
.asset-result-snippet{display:-webkit-box;margin:7px 0;color:#52627a;font-size:12px;line-height:1.55;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3}.asset-result-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.asset-result-actions a[data-preview],.asset-result-actions a[data-search-open]{color:#4268b3}
.asset-preview-dialog{width:min(1180px,92vw);max-width:none;margin:auto;inset:0;padding:0;border:0;border-radius:12px;background:transparent}
.asset-preview-dialog::backdrop{background:rgba(15,23,42,.48)}
.asset-preview-dialog .foundation-modal-box{width:100%;max-height:88vh;display:flex;flex-direction:column;overflow:hidden}
.asset-preview-dialog .foundation-modal-box>header{display:flex;align-items:center;justify-content:space-between;gap:18px}
.asset-preview-dialog .foundation-modal-box>header small{display:block;margin-top:3px;color:#8b95a7;font-size:12px}
.asset-preview-header-actions{display:flex;align-items:center;gap:10px}.asset-preview-dialog .asset-preview-header-actions>button{height:34px;border:0;border-radius:7px;cursor:pointer}.asset-preview-dialog .asset-preview-header-actions>[data-preview-close]{width:34px;color:#64748b;background:transparent;font-size:20px}.asset-preview-dialog .asset-preview-header-actions>[data-preview-close]:hover{background:#eef2f7}.asset-preview-local-open{padding:0 14px;color:#fff;background:#526fc4;font-size:13px;font-weight:600}.asset-preview-local-open:hover{background:#425eae}.asset-preview-local-open:disabled{opacity:.6;cursor:wait}
.asset-preview-zoom-controls{display:flex;height:34px;align-items:center;overflow:hidden;border:1px solid #d8e0eb;border-radius:7px;background:#fff}.asset-preview-zoom-controls button{height:32px;min-width:34px;padding:0 9px;border:0;border-right:1px solid #e3e8ef;color:#4d5d74;background:#fff;cursor:pointer;font-size:14px;font-weight:600}.asset-preview-zoom-controls button:last-child{border-right:0}.asset-preview-zoom-controls button[data-preview-zoom-reset]{min-width:56px;color:#64748b;font-size:12px}.asset-preview-zoom-controls button:hover:not(:disabled){background:#eef3fa}.asset-preview-zoom-controls button:disabled{color:#bdc5d0;cursor:not-allowed}
.asset-preview-dialog .foundation-modal-body.asset-preview-body{min-height:420px;overflow:auto;background:#f7f8fa;display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-items:start;gap:12px}
.asset-preview-zoom-surface{display:grid;width:100%;min-width:0;box-sizing:border-box;justify-items:center;align-items:start;gap:12px;transform-origin:top center}
.asset-preview-frame{width:100%;height:min(70vh,760px);border:1px solid #e5e7eb;border-radius:8px;background:#fff}
.asset-preview-frame--pdf{height:min(76vh,820px)}
.asset-preview-frame--office{height:min(70vh,760px)}
.asset-preview-text{margin:0;min-height:420px;padding:22px 24px;white-space:pre-wrap;word-break:break-word;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#27364d;font:13px/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.asset-preview-loading{display:grid;width:min(520px,calc(100% - 40px));min-height:360px;margin:auto;place-self:center;align-content:center;gap:14px;text-align:center;color:#43526a}.asset-preview-loading>strong{font-size:18px}.asset-preview-loading>span{height:8px;overflow:hidden;border-radius:999px;background:#dfe6f0}.asset-preview-loading>span>i{display:block;width:16%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5576cf,#7d9be8);transition:width .2s ease;animation:asset-preview-loading 1.4s ease-in-out infinite}.asset-preview-loading>small{color:#64748b;font-size:14px;font-weight:500}@keyframes asset-preview-loading{0%{transform:translateX(-30%)}50%{transform:translateX(180%)}100%{transform:translateX(520%)}}
.asset-preview-loading.is-determinate>span>i{animation:none;transform:none}
.spa-personal-assets [data-file-command="preview"]{display:none}
.asset-preview-markdown{width:min(960px,100%);min-height:420px;box-sizing:border-box;padding:30px 38px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(44,62,90,.06);color:#27364d;font-size:15px;line-height:1.75}
.asset-preview-markdown .hermes-table-wrap{margin:16px 0}.asset-preview-markdown .hermes-code-block{margin:16px 0}.asset-preview-markdown blockquote{margin:14px 0}.asset-preview-markdown hr{margin:22px 0;border:0;border-top:1px solid #dfe6f0}
@media (max-width:680px){.asset-preview-markdown{padding:20px 18px}}
.asset-preview-media{display:block;max-width:100%;max-height:70vh;margin:auto;border-radius:8px;object-fit:contain;background:#fff}
.asset-preview-audio{width:min(620px,100%);margin:80px auto}
.asset-preview-office{width:100%;min-height:480px;box-sizing:border-box;border:1px solid #e1e7ef;border-radius:9px;background:#fff}.asset-preview-office--docx{padding:18px;overflow:auto}.asset-preview-office--docx .docx-wrapper{padding:20px;background:#edf1f6}.asset-preview-office--pptx{display:flex;min-height:560px;align-items:flex-start;justify-content:center;padding:20px;overflow:auto;background:#e9edf3}.asset-preview-office--pptx>div{max-width:100%}.asset-preview-office--xlsx{padding:22px;overflow:auto}.asset-preview-sheet+ .asset-preview-sheet{margin-top:28px}.asset-preview-sheet h3{margin:0 0 12px;color:#27364d;font-size:16px}.asset-preview-sheet-scroll{max-width:100%;overflow:auto;border:1px solid #dfe5ee;border-radius:7px}.asset-preview-sheet table{border-collapse:collapse;background:#fff;font-size:13px}.asset-preview-sheet td{min-width:110px;padding:8px 10px;border:1px solid #e3e8ef;color:#334155;white-space:nowrap}.asset-preview-sheet tr:first-child td{background:#f2f5f9;font-weight:600}.asset-preview-system-note{width:min(620px,calc(100% - 40px));margin:auto;padding:40px;border:1px dashed #cbd5e1;border-radius:10px;background:#fff;text-align:center}.asset-preview-system-note strong{color:#27364d;font-size:18px}.asset-preview-system-note p{margin:12px 0 0;color:#64748b;line-height:1.7}
.bridge-update-modal{z-index:3600}.bridge-update-modal .foundation-modal-box>header strong{font-size:18px}.bridge-update-modal .foundation-modal-box>header span{font-size:13px}.bridge-update-version{display:flex;align-items:center;justify-content:center;gap:18px;padding:18px;border-radius:9px;background:#f1f5fb;color:#475569;font-size:15px}.bridge-update-version span{display:grid;gap:5px;text-align:center}.bridge-update-version b{color:#3659b5;font-size:22px}.bridge-update-version i{color:#8795aa;font-size:22px;font-style:normal}.bridge-update-message{margin:0;color:#526077;font-size:15px;line-height:1.75}.bridge-update-modal .foundation-modal-box>footer button,.bridge-update-modal .foundation-modal-box>footer .bridge-update-download{display:inline-flex;min-width:112px;height:38px;box-sizing:border-box;align-items:center;justify-content:center;padding:0 16px;border-radius:6px;text-decoration:none;font-size:14px;font-weight:600}.bridge-update-modal .foundation-modal-box>footer .bridge-update-download{color:#fff;background:#5877cd}.bridge-update-modal .foundation-modal-box>footer .bridge-update-download:hover{background:#4665bc}
.bridge-update-complete-mark{display:grid;width:58px;height:58px;margin:2px auto -2px;place-items:center;border-radius:50%;color:#fff;background:#35a36f;box-shadow:0 10px 24px rgba(53,163,111,.22);font-size:32px;font-weight:700}.bridge-update-complete-modal .bridge-update-version{background:#edf8f2}.bridge-update-complete-modal .bridge-update-version b{color:#27845a}.bridge-update-complete-modal .foundation-modal-box>footer button.is-primary{border-color:#35a36f;background:#35a36f}.bridge-update-complete-modal .foundation-modal-box>footer button.is-primary:hover{background:#2c8f61}
.asset-preview-match{padding:10px 14px;border:1px solid #dbeafe;border-radius:8px;background:#eff6ff;color:#334155}
.asset-preview-match strong{display:block;color:#1d4ed8;font-size:12px;margin-bottom:4px}
.asset-preview-match p{margin:0;white-space:pre-wrap;word-break:break-word}
