/**
 * 全站交互：主内容可选中复制；侧栏/按钮等不可选；非输入区不显示插入光标
 */

html {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  -webkit-touch-callout: default;
}

.ctx-menu,
.ctx-menu .ctx-item,
.ctx-menu .ctx-item__label {
  user-select: none;
  -webkit-user-select: none;
}

/* ── 开发者工具遮罩 ── */
.offerflow-devtools-shield {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.offerflow-devtools-shield[hidden] {
  display: none !important;
}

.offerflow-devtools-shield__box {
  max-width: 420px;
  text-align: center;
  color: #f8fafc;
  line-height: 1.6;
}

.offerflow-devtools-shield__box strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

html.offerflow-devtools-open .app-shell,
html.offerflow-devtools-open .auth-page {
  filter: blur(6px);
  pointer-events: none;
}

/* ── 打印：隐藏全部业务内容 ── */
@media print {
  body * {
    visibility: hidden !important;
  }

  body::after {
    visibility: visible !important;
    content: "OfferFlow 受保护内容，禁止打印。";
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #111;
  }
}

/* ── 登录后主应用 ── */
.app-shell .page,
.app-shell .lounge-compose-dock,
.app-shell .allow-text-select {
  user-select: text;
  -webkit-user-select: text;
  caret-color: transparent;
}

.app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="hidden"]):not([type="image"]),
.app-shell textarea,
.app-shell select,
.app-shell [contenteditable="true"],
.app-shell .inline-input {
  user-select: text;
  -webkit-user-select: text;
  caret-color: auto;
}

.app-shell .sidebar,
.app-shell .topbar,
.app-shell .nav-item,
.app-shell .nav-section-label,
.app-shell .nav-label,
.app-shell .sidebar-logo,
.app-shell .user-name,
.app-shell .user-email,
.app-shell .topbar-title,
.app-shell .btn,
.app-shell button:not(.allow-text-select),
.app-shell .filter-tab,
.app-shell .batch-toolbar,
.app-shell .theme-menu-trigger,
.app-shell .lounge-tabs__btn,
.app-shell .dashboard-filter-btn {
  user-select: none;
  -webkit-user-select: none;
  caret-color: transparent;
}

.app-shell .inline-editable {
  user-select: text;
  -webkit-user-select: text;
  cursor: pointer;
  caret-color: transparent;
}

.app-shell a.nav-item,
.app-shell .btn,
.app-shell button:not(:disabled),
.app-shell [role="button"],
.app-shell .sidebar-logo,
.app-shell .job-link-card,
.app-shell .lounge-card__actions button {
  cursor: pointer;
}

.app-shell .data-table tbody tr {
  cursor: default;
}

/* ── 登录/注册页 ── */
.auth-page {
  user-select: text;
  -webkit-user-select: text;
  caret-color: transparent;
}

.auth-page input,
.auth-page textarea,
.auth-page select,
.auth-page [contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
  caret-color: auto;
}

.auth-brand {
  user-select: none;
  -webkit-user-select: none;
}
