/* ==========================================================================
   千柯 · 团队工作台 — 新页面组件（Apple 浅色皮肤）
   只负责「今日」与「业务」的新结构；全局外观仍由 apple.css / clean.css /
   platform.css / motion.css 提供，这里不再覆盖任何 token、外壳或基础控件。
   ========================================================================== */

/* ---------- 侧栏搜索提示（搜索框已移除，只留 ⌘K 提示） ---------- */
.apple-skin.apple-light.apple-ui .nav-keyhint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 2px 12px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #f2f2f5;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}
.apple-skin.apple-light.apple-ui .nav-keyhint kbd {
  padding: 2px 6px;
  border: 1px solid #dedee4;
  border-radius: 5px;
  background: #fff;
  color: var(--sub);
  font: 10.5px/1.4 var(--font);
  box-shadow: 0 1px 0 rgba(16, 24, 40, .04);
}

/* ---------- 业务页头 ---------- */
.apple-skin.apple-light.apple-ui .biz-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 16px;
}
.apple-skin.apple-light.apple-ui .biz-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.apple-skin.apple-light.apple-ui .biz-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.apple-skin.apple-light.apple-ui .biz-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.apple-skin.apple-light.apple-ui .biz-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 2px;
}
.apple-skin.apple-light.apple-ui .pf-business-tabs {
  margin-bottom: 18px;
}

/* ---------- 今日 ---------- */
.apple-skin.apple-light.apple-ui .today-page {
  display: grid;
  gap: 16px;
}
.apple-skin.apple-light.apple-ui .today-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid #e5e5e9;
  border-radius: var(--radius-card);
  background:
    radial-gradient(58% 90% at 100% 0%, rgba(0, 122, 255, .07), transparent 62%),
    #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .035);
}
.apple-skin.apple-light.apple-ui .today-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .03em;
}
.apple-skin.apple-light.apple-ui .today-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c7c7cc;
}
.apple-skin.apple-light.apple-ui .today-hero h1 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}
.apple-skin.apple-light.apple-ui .today-lede {
  max-width: 560px;
  margin: 0 0 16px;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.6;
}
.apple-skin.apple-light.apple-ui .today-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.apple-skin.apple-light.apple-ui .today-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.apple-skin.apple-light.apple-ui .today-stat {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 8px;
  padding: 11px 13px;
  border: 1px solid #e8e8ed;
  border-radius: 12px;
  background: #fbfbfd;
  color: inherit;
  text-align: left;
  transition: border-color .18s var(--motion-out), background .18s var(--motion-out), transform .24s var(--motion-spring);
}
.apple-skin.apple-light.apple-ui .today-stat:hover {
  border-color: #d6e4fb;
  background: #f7faff;
  transform: translateY(-1px);
}
.apple-skin.apple-light.apple-ui .today-stat span {
  color: var(--muted);
  font-size: 11px;
}
.apple-skin.apple-light.apple-ui .today-stat b {
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.1;
}
.apple-skin.apple-light.apple-ui .today-stat small {
  grid-column: 1 / -1;
  color: var(--faint, var(--muted));
  font-size: 10.5px;
}
.apple-skin.apple-light.apple-ui .today-focus {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid #dce8fb;
  border-radius: var(--radius-card);
  background: linear-gradient(168deg, #f7faff 0%, #eef5ff 100%);
}
.apple-skin.apple-light.apple-ui .today-focus-kicker {
  color: #0066cc;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.apple-skin.apple-light.apple-ui .today-focus b {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.apple-skin.apple-light.apple-ui .today-focus p {
  margin: 0;
  color: var(--sub);
  font-size: 12.5px;
  line-height: 1.6;
}
.apple-skin.apple-light.apple-ui .today-focus-actions {
  margin-top: auto;
  padding-top: 6px;
}
.apple-skin.apple-light.apple-ui .today-focus-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 11px;
  border-top: 1px dashed rgba(0, 122, 255, .18);
  color: var(--muted);
  font-size: 11px;
}
.apple-skin.apple-light.apple-ui .today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 16px;
}
.apple-skin.apple-light.apple-ui .today-main,
.apple-skin.apple-light.apple-ui .today-side {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}
.apple-skin.apple-light.apple-ui .today-panel .panel-header h2 {
  font-size: 15px;
}
.apple-skin.apple-light.apple-ui .today-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f4;
}
.apple-skin.apple-light.apple-ui .today-row:first-of-type {
  border-top: 0;
}
.apple-skin.apple-light.apple-ui .today-row-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #007aff;
  align-self: flex-start;
}
.apple-skin.apple-light.apple-ui .today-row-dot.blue { background: #007aff; }
.apple-skin.apple-light.apple-ui .today-row-dot.amber { background: #b25e00; }
.apple-skin.apple-light.apple-ui .today-row-dot.red { background: #d70015; }
.apple-skin.apple-light.apple-ui .today-row-dot.green { background: #248a3d; }
.apple-skin.apple-light.apple-ui .today-row-dot.violet { background: #6e5bd8; }
.apple-skin.apple-light.apple-ui .today-row-dot.gray { background: #8e8e93; }
.apple-skin.apple-light.apple-ui .today-row-main {
  min-width: 0;
}
.apple-skin.apple-light.apple-ui .today-row-main b {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apple-skin.apple-light.apple-ui .today-row-main small {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apple-skin.apple-light.apple-ui .today-subhead {
  padding: 12px 16px 3px;
  border-top: 1px solid #f0f0f4;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.apple-skin.apple-light.apple-ui .today-snapshot-main b {
  display: block;
  margin: 2px 0 1px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.apple-skin.apple-light.apple-ui .today-snapshot-main span {
  color: var(--muted);
  font-size: 11px;
}
.apple-skin.apple-light.apple-ui .today-snapshot-main small {
  color: var(--muted);
  font-size: 11px;
}
.apple-skin.apple-light.apple-ui .today-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f4;
}
.apple-skin.apple-light.apple-ui .today-split span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
.apple-skin.apple-light.apple-ui .today-split b {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}
.apple-skin.apple-light.apple-ui .today-warn {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(215, 0, 21, .06);
  color: #b00012;
  font-size: 11.5px;
}
.apple-skin.apple-light.apple-ui .today-activity-list {
  display: grid;
  gap: 0;
}
.apple-skin.apple-light.apple-ui .today-activity {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #f0f0f4;
}
.apple-skin.apple-light.apple-ui .today-activity:first-child {
  border-top: 0;
}
.apple-skin.apple-light.apple-ui .today-activity-dot {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: #007aff;
}
.apple-skin.apple-light.apple-ui .today-activity b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.45;
}
.apple-skin.apple-light.apple-ui .today-activity small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .apple-skin.apple-light.apple-ui .today-hero,
  .apple-skin.apple-light.apple-ui .today-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 820px) {
  .apple-skin.apple-light.apple-ui .biz-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .apple-skin.apple-light.apple-ui .today-hero {
    padding: 22px;
  }
  .apple-skin.apple-light.apple-ui .today-hero h1 {
    font-size: 38px;
  }
  .apple-skin.apple-light.apple-ui .today-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .apple-skin.apple-light.apple-ui .today-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .apple-skin.apple-light.apple-ui .today-row .status-pill,
  .apple-skin.apple-light.apple-ui .today-row .btn {
    grid-column: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .apple-skin.apple-light.apple-ui .today-stat,
  .apple-skin.apple-light.apple-ui .nav-keyhint {
    transition: none;
  }
}

/* ---------- 风格预览 mock 的尺寸工具类（CSP：不能写内联 style） ---------- */
.qk-w-0 { width: 0%; }
.qk-w-5 { width: 5%; }
.qk-w-10 { width: 10%; }
.qk-w-15 { width: 15%; }
.qk-w-20 { width: 20%; }
.qk-w-25 { width: 25%; }
.qk-w-30 { width: 30%; }
.qk-w-35 { width: 35%; }
.qk-w-40 { width: 40%; }
.qk-w-45 { width: 45%; }
.qk-w-50 { width: 50%; }
.qk-w-55 { width: 55%; }
.qk-w-60 { width: 60%; }
.qk-w-65 { width: 65%; }
.qk-w-70 { width: 70%; }
.qk-w-75 { width: 75%; }
.qk-w-80 { width: 80%; }
.qk-w-85 { width: 85%; }
.qk-w-90 { width: 90%; }
.qk-w-95 { width: 95%; }
.qk-w-100 { width: 100%; }
.qk-h-0 { height: 0%; }
.qk-h-5 { height: 5%; }
.qk-h-10 { height: 10%; }
.qk-h-15 { height: 15%; }
.qk-h-20 { height: 20%; }
.qk-h-25 { height: 25%; }
.qk-h-30 { height: 30%; }
.qk-h-35 { height: 35%; }
.qk-h-40 { height: 40%; }
.qk-h-45 { height: 45%; }
.qk-h-50 { height: 50%; }
.qk-h-55 { height: 55%; }
.qk-h-60 { height: 60%; }
.qk-h-65 { height: 65%; }
.qk-h-70 { height: 70%; }
.qk-h-75 { height: 75%; }
.qk-h-80 { height: 80%; }
.qk-h-85 { height: 85%; }
.qk-h-90 { height: 90%; }
.qk-h-95 { height: 95%; }
.qk-h-100 { height: 100%; }

/* 会议：Jitsi 房间与会议列表 */
.meeting-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 15px;
  border: 1px solid #e5e5e9;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.meeting-note .icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.meeting-note b { color: var(--ink); font-weight: 590; }
.meeting-sections { display: grid; gap: 26px; }
.meeting-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.meeting-section-head h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.meeting-section-head span { color: var(--muted); font-size: 11.5px; }
.meeting-list { overflow: hidden; border: 1px solid #e5e5e9; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.meeting-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #f0f0f4; transition: background .16s ease; }
.meeting-row:last-child { border-bottom: 0; }
.meeting-row:hover { background: #fafafd; }
.meeting-row.is-ended { opacity: .7; }
.meeting-when { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.meeting-when b { color: var(--ink); font-size: 14px; letter-spacing: -.01em; }
.meeting-when span { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.meeting-info { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.meeting-info b, .meeting-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-info b { font-size: 13.5px; }
.meeting-info small { color: var(--muted); font-size: 11.5px; }
.meeting-state { display: flex; align-items: center; }
.meeting-row-actions { display: flex; align-items: center; gap: 6px; }
.meeting-room { display: flex; flex-direction: column; height: calc(100dvh - 86px); min-height: 520px; gap: 10px; }
.meeting-room-bar { display: flex; align-items: center; gap: 14px; padding: 0 2px; }
.meeting-room-title { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.meeting-room-title b, .meeting-room-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-room-title b { font-size: 15px; }
.meeting-room-notes { margin: -2px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.meeting-room-title small { color: var(--muted); font-size: 11px; }
.meeting-room-actions { display: flex; align-items: center; gap: 6px; }
.meeting-frame-wrap { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 1px solid #e1e1e6; border-radius: 16px; background: #0f1115; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.meeting-frame { display: block; width: 100%; height: 100%; border: 0; background: #0f1115; }
.meeting-footnote { padding: 0 2px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
#page-content.meeting-mode { width: 100%; max-width: none; padding: 0 0 8px; }
@media (max-width: 980px) {
  .meeting-row { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
  .meeting-state { display: none; }
  .meeting-row-actions { grid-column: 2; justify-content: flex-start; }
  .meeting-room-bar { flex-wrap: wrap; }
  .meeting-room-actions { width: 100%; }
}
@media (max-width: 760px) {
  .meeting-room { height: calc(100dvh - 72px); min-height: 420px; }
  .meeting-footnote { font-size: 10.5px; }
}

/* Incoming meeting call */
.incoming-call { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(16, 20, 28, .42); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.incoming-call[hidden] { display: none; }
.incoming-card { width: min(360px, calc(100vw - 32px)); padding: 28px 26px 24px; border-radius: 26px; background: #fffdf8; box-shadow: 0 30px 80px rgba(16, 20, 28, .28); text-align: center; }
.incoming-pulse { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #3f6b5b, #2f5144); box-shadow: 0 0 0 0 rgba(63, 107, 91, .35); animation: qk-ring 1.8s ease-out infinite; }
.incoming-pulse svg { width: 28px; height: 28px; }
@keyframes qk-ring { 0% { box-shadow: 0 0 0 0 rgba(63, 107, 91, .35); } 70% { box-shadow: 0 0 0 18px rgba(63, 107, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 107, 91, 0); } }
.incoming-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6f6759; }
.incoming-card h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; color: #2f2b26; }
.incoming-meta { margin: 0 0 20px; color: #5e574d; font-size: 14px; }
.incoming-actions { display: flex; gap: 10px; justify-content: center; }
.incoming-actions .btn { min-width: 108px; }

/* Meeting participant picker */
.meeting-picks { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.pick-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(88, 72, 52, .16); background: #fff; font-size: 13px; color: #3a352d; cursor: pointer; }
.pick-chip input { accent-color: #3f6b5b; }
.pick-chip:has(input:checked) { border-color: #3f6b5b; background: #eef5f0; }
