/* ========== CAJ 应用区（对齐桌面版布局） ========== */
.caj-app {
  max-width: 1200px;
  margin: 0 auto;
}

.caj-view-home {
  min-height: calc(100vh - 320px);
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* 顶栏：鲲穹账号登录态 */
.header-auth-logged {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(220px, 46vw);
}

.header-user-menu {
  position: relative;
}

.header-user-center-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  min-width: 0;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-user-center-btn:hover,
.header-user-center-btn[aria-expanded="true"] {
  border-color: rgba(30, 136, 229, 0.28);
  box-shadow: 0 14px 32px rgba(30, 136, 229, 0.14);
  transform: translateY(-1px);
}

.auth-user-avatar,
.user-center-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.auth-user-avatar-fallback,
.user-center-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  color: #fff;
  font-weight: 700;
}

.auth-user-label {
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-caret {
  color: #64748b;
  font-size: 12px;
  line-height: 1;
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 176px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
  z-index: 1200;
}

.header-user-dropdown-item {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.header-user-dropdown-item:hover {
  background: #eff6ff;
  color: #0f62fe;
}

.header-user-dropdown-item.danger:hover {
  background: #fff1f2;
  color: #be123c;
}
.auth-modal-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 12px;
}
.auth-modal-status {
  font-size: 14px;
  color: #1890ff;
  min-height: 1.4em;
  margin: 0 0 12px;
}
.auth-modal-fallback {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.auth-modal-open-link {
  color: #1890ff;
  font-weight: 600;
  text-decoration: underline;
}
.auth-modal-open-link:hover {
  color: #40a9ff;
}
.auth-modal-fallback-hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #888;
  font-weight: normal;
}

.main-content {
  padding-top: calc(var(--header-height) + 16px);
}

@media (max-width: 768px) {
  .main-content {
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 12px);
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
}

/* ----- 首页（三卡片 + 标题） ----- */
.caj-home-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}

.caj-home-title {
  font-size: calc(24px * var(--ui-scale));
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.caj-home-highlight {
  font-size: calc(24px * var(--ui-scale));
  font-weight: 700;
  color: #f97316;
  line-height: 1.3;
}

.caj-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-bottom: 56px;
}

.caj-feature-card {
  min-width: 260px;
  max-width: 300px;
  min-height: 300px;
  background: #f8fbff;
  border: 1px solid #e8f0f8;
  border-radius: 12px;
  padding: 24px 20px 28px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
}

.caj-feature-card:hover {
  background: #f0f7ff;
  border-color: #d0e4f8;
}

.caj-card-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.caj-card-icon.c1 {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
}
.caj-card-icon.c2 {
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
}
.caj-card-icon.c3 {
  background: linear-gradient(135deg, #fdba74, #fb923c);
}

.caj-card-title {
  font-size: calc(18px * var(--ui-scale));
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.35;
}

.caj-card-desc {
  font-size: calc(13px * var(--ui-scale));
  color: #888;
  line-height: var(--body-line-height);
  white-space: pre-line;
}

.caj-home-brand {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-top: 32px;
  padding: 16px;
  color: #999;
  font-size: 12px;
}

.caj-home-brand span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .caj-view-home {
    min-height: auto;
  }
}

/* ----- 工作区：侧栏 + 主区域 ----- */
.caj-work-wrap {
  display: flex;
  min-height: 520px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
}

.caj-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #f0f0f0;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.caj-side-item {
  padding: 10px 20px;
  font-size: calc(14px * var(--ui-scale));
  color: #333;
  cursor: pointer;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: var(--body-line-height);
}

.caj-side-item:hover {
  background: #f5f5f5;
}

.caj-side-item.active {
  background: #e8f4fc;
  border-left-color: #1890ff;
  color: #1890ff;
  font-weight: 500;
}

.caj-work-main {
  flex: 1;
  background: #f5f7fa;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.caj-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
}

.caj-toolbar button {
  background: transparent;
  border: none;
  color: #333;
  padding: 8px 12px;
  cursor: pointer;
  font-size: calc(14px * var(--ui-scale));
  line-height: var(--body-line-height);
}

.caj-toolbar button:hover {
  color: #1890ff;
}

.caj-toolbar .caj-file-count {
  color: #666;
  font-size: calc(13px * var(--ui-scale));
  margin-left: auto;
  line-height: var(--body-line-height);
}

.caj-toolbar .caj-clear {
  margin-left: 0;
}

.caj-drop-zone {
  margin: 0 16px 12px;
  border: 2px dashed #d9d9d9;
  border-radius: 12px;
  padding: 48px 20px;
  text-align: center;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.caj-drop-zone:hover,
.caj-drop-zone.caj-dragover {
  border-color: #1890ff;
  background: #f0f7ff;
}

.caj-drop-hint {
  font-size: calc(15px * var(--ui-scale));
  color: #333;
  margin-bottom: 8px;
  line-height: var(--body-line-height);
}

.caj-drop-sub {
  font-size: calc(13px * var(--ui-scale));
  color: #888;
  line-height: var(--body-line-height);
}

.caj-file-table-wrap {
  margin: 0 16px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  overflow-x: auto;
}

.caj-file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(13px * var(--ui-scale));
  line-height: var(--body-line-height);
}

.caj-file-table th {
  background: #fafafa;
  padding: 10px 8px;
  color: #666;
  font-weight: 500;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.caj-file-table th:first-child,
.caj-file-table td:first-child {
  text-align: left;
  padding-left: 12px;
}

.caj-file-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
  text-align: center;
}

.caj-file-table tr:nth-child(even) td {
  background: #fafafa;
}

.caj-file-table .name-cell {
  word-break: break-all;
  max-width: 220px;
  text-align: left;
}

.caj-page-btn {
  background: none;
  border: none;
  color: #1890ff;
  cursor: pointer;
  padding: 4px;
  font-size: calc(12px * var(--ui-scale));
}

.caj-page-btn:hover {
  text-decoration: underline;
}

.caj-op-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  margin: 0 2px;
}

.caj-op-btn:hover {
  border-color: #1890ff;
  background: #e6f7ff;
}

.caj-op-btn.del:hover {
  border-color: #ff4444;
  background: #fff2f0;
}

.caj-bottom {
  padding: 10px 16px 16px;
  background: #f5f7fa;
}

.caj-bottom.hidden {
  display: none !important;
}

.caj-options-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 10px;
}

.caj-options-row label.caj-label {
  color: #666;
  font-size: calc(13px * var(--ui-scale));
}

.caj-option-tip {
  font-size: calc(12px * var(--ui-scale));
  color: #64748b;
  line-height: var(--body-line-height);
}

.caj-format-radios label {
  margin-right: 12px;
  font-size: calc(13px * var(--ui-scale));
  color: #666;
  cursor: pointer;
  line-height: var(--body-line-height);
}

.caj-format-radios input {
  margin-right: 4px;
  vertical-align: middle;
}

.caj-out-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.caj-start-btn {
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: calc(14px * var(--ui-scale));
  font-weight: 700;
  cursor: pointer;
}

.caj-start-btn:hover:not(:disabled) {
  background: #40a9ff;
}

.caj-start-btn:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
}

.caj-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 20px 16px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.caj-step {
  text-align: center;
  max-width: 160px;
}

.caj-step-num {
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: #e6f7ff;
  color: #1890ff;
  font-weight: 700;
  margin: 0 auto 8px;
}

.caj-step-title {
  font-size: calc(14px * var(--ui-scale));
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
}

.caj-step-desc {
  font-size: calc(12px * var(--ui-scale));
  color: #999;
  line-height: var(--body-line-height);
}

.caj-work-brand {
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: #999;
}

/* 页码弹窗 */
.caj-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.caj-modal {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  min-width: 300px;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.user-center-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f2;
  color: #be123c;
  font-size: 13px;
}

.user-center-records-empty {
  padding: 24px 0 8px;
  color: #64748b;
  font-size: 14px;
}

.user-center-records-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-center-search-input {
  min-width: 240px;
  padding: 10px 12px;
  border: 1px solid #d7e3f4;
  border-radius: 12px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
}

.user-center-toolbar-btn {
  padding: 10px 14px;
  border: 1px solid #d7e3f4;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.user-center-toolbar-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.user-center-records-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-center-record-item {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.user-center-record-top,
.user-center-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.user-center-record-top {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.user-center-record-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-center-record-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  word-break: break-all;
}

.user-center-record-status {
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
}

.user-center-record-status.failed {
  color: #b91c1c;
}

.user-center-record-meta {
  font-size: 12px;
  color: #64748b;
}

.user-center-record-result {
  margin-top: 10px;
  font-size: 12px;
  color: #334155;
  word-break: break-word;
}

.user-center-record-delete {
  border-color: #fecdd3;
  color: #be123c;
}

.user-center-pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.user-center-pagination-info {
  font-size: 13px;
  color: #64748b;
}

.user-center-pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.caj-modal h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.caj-modal .caj-modal-row {
  margin-bottom: 12px;
}

.caj-modal input[type="text"],
.caj-modal input[type="number"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}

.caj-modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.caj-modal-actions button {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.caj-modal-actions button.primary {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

.caj-msg-bar {
  padding: 8px 16px;
  font-size: calc(13px * var(--ui-scale));
  line-height: var(--body-line-height);
}

.caj-msg-bar.error {
  color: #c62828;
}

.caj-msg-bar.ok {
  color: #2e7d32;
}

.lang-footer {
  margin-top: 8px;
}

/* 页脚语言：点击切换界面语言 */
.lang-links .lang-item {
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.lang-links .lang-item:hover {
  color: var(--primary-color);
}

.lang-links .lang-item.lang-current {
  color: var(--primary-color);
  font-weight: 500;
}

.caj-account-view {
  padding: 28px 0 8px;
}

.account-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.account-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.account-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.account-back-btn:hover {
  transform: translateY(-1px);
  color: #0f62fe;
  border-color: rgba(30, 136, 229, 0.28);
  box-shadow: 0 16px 32px rgba(30, 136, 229, 0.12);
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: stretch;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 34%),
    radial-gradient(circle at left bottom, rgba(14, 165, 233, 0.12), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 44%, #0f766e 100%);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
  color: #fff;
}

.account-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.account-hero-avatar-wrap .user-center-avatar,
.account-hero-avatar-wrap .user-center-avatar-fallback {
  width: 76px;
  height: 76px;
}

.account-hero-copy {
  min-width: 0;
}

.account-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.account-hero-name {
  margin: 10px 0 8px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  word-break: break-word;
}

.account-hero-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.76);
}

.account-vip-card {
  width: 100%;
  border-radius: 24px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.account-vip-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.account-vip-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.account-vip-meta {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.account-summary-card,
.account-panel {
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.account-summary-card {
  padding: 20px 22px;
}

.account-summary-card span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 12px;
}

.account-summary-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.05;
  color: #0f172a;
}

.account-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.account-panel {
  padding: 22px;
}

.account-panel-head {
  margin-bottom: 18px;
}

.account-panel-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-panel-head h3 {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}

.account-panel-desc {
  margin: 8px 0 0;
  font-size: 13px;
  color: #64748b;
}

.account-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-detail-item,
.account-rights-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5edf6;
}

.account-detail-item span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #64748b;
}

.account-detail-item strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.account-rights-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-rights-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.account-rights-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  color: #0f62fe;
  font-size: 18px;
  flex-shrink: 0;
}

.account-rights-item strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 14px;
}

.account-rights-item p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.account-records-panel {
  padding: 24px;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
  .caj-app {
    padding-left: 0;
    padding-right: 0;
  }

  .caj-home-title-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
  }

  .caj-home-title,
  .caj-home-highlight {
    font-size: 20px;
    line-height: 1.35;
  }

  .caj-cards {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 0 4px;
  }

  .caj-feature-card {
    min-width: 0;
    max-width: none;
    width: 100%;
    min-height: 0;
    padding: 20px 16px 22px;
  }

  .caj-card-icon {
    width: 88px;
    height: 88px;
    font-size: 44px;
    margin-bottom: 12px;
  }

  .caj-card-title {
    font-size: 17px;
  }

  .caj-work-wrap {
    flex-direction: column;
    min-height: 0;
    border-radius: 10px;
  }

  .header-user-dropdown {
    left: 0;
    right: auto;
    min-width: 160px;
  }

  .caj-sidebar {
    width: 100%;
    flex-shrink: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 10px 8px;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    scrollbar-width: thin;
  }

  .caj-sidebar::-webkit-scrollbar {
    height: 4px;
  }

  .caj-side-item {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 13px;
    border-left: none;
    border-radius: 8px;
    white-space: nowrap;
  }

  .caj-side-item.active {
    border-left: none;
    box-shadow: inset 0 0 0 2px #1890ff;
  }

  .caj-toolbar {
    padding: 10px 12px;
    gap: 8px;
  }

  .caj-toolbar button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .caj-toolbar .caj-file-count {
    width: 100%;
    flex-basis: 100%;
    margin-left: 0;
    order: 10;
    text-align: center;
  }

  .caj-drop-zone {
    margin: 0 12px 10px;
    padding: 32px 14px;
  }

  .caj-drop-hint {
    font-size: 14px;
  }

  .caj-drop-sub {
    font-size: 12px;
    line-height: 1.5;
  }

  .caj-account-view {
    padding-top: 18px;
  }

  .account-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 22px;
  }

  .account-hero-main {
    align-items: flex-start;
  }

  .account-hero-name {
    font-size: 24px;
  }

  .account-summary-grid,
  .account-panel-grid,
  .account-detail-grid {
    grid-template-columns: 1fr;
  }

  .account-panel,
  .account-records-panel,
  .account-summary-card {
    padding: 18px;
    border-radius: 18px;
  }

  .caj-file-table-wrap {
    margin: 0 12px 10px;
  }

  .caj-file-table {
    min-width: 520px;
    font-size: 12px;
  }

  .caj-file-table th,
  .caj-file-table td {
    padding: 8px 6px;
  }

  .caj-file-table .name-cell {
    max-width: 140px;
  }

  .caj-page-btn {
    min-height: 36px;
    padding: 6px 8px;
  }

  .caj-op-btn {
    width: 32px;
    height: 32px;
  }

  .caj-bottom {
    padding: 8px 12px 14px;
  }

  .caj-options-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .caj-format-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .caj-format-radios label {
    margin-right: 0;
  }

  #row-image-extra {
    flex-direction: column;
    align-items: flex-start !important;
  }

  #row-image-extra label[style] {
    margin-left: 0 !important;
    margin-top: 8px;
  }

  .caj-out-row {
    justify-content: stretch;
  }

  .caj-start-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 16px;
  }

  .caj-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 16px 12px;
  }

  .caj-step {
    max-width: 100%;
  }

  .caj-work-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    line-height: 1.5;
  }

  .caj-work-brand #version-text-work {
    margin-left: 0 !important;
  }

  .caj-modal-overlay {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .caj-modal {
    width: 100%;
    max-width: none;
    min-width: 0;
    border-radius: 12px 12px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    margin-top: auto;
  }

  .caj-modal-actions {
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 10px;
  }

  .caj-modal-actions button {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .lang-footer {
    margin-top: 12px;
  }

  .lang-footer .lang-links {
    font-size: 12px;
    line-height: 2;
    word-break: break-word;
    hyphens: auto;
  }

  .user-center-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .tool-header {
    padding: 16px 16px !important;
  }

  .tool-body {
    padding: 16px !important;
  }

  .caj-home-title,
  .caj-home-highlight {
    font-size: 18px;
  }

  .caj-file-table {
    min-width: 480px;
  }

  .user-center-grid {
    grid-template-columns: 1fr;
  }
}
