/* 团队看板（team-link-20261028）。类名一律 tl- 前缀，颜色沿用伙伴页的 --pt-* 那一套，不碰全站样式。 */
.tl-root{--tl-red:#c52d23;--tl-red-dark:#a9221a;--tl-soft:#fff3ef;--tl-paper:#faf8f6;--tl-border:#e9e1dc;--tl-muted:#6f7886;--tl-text:#202633;--tl-warn:#b4541a;--tl-warn-bg:#fff4e8;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--tl-text);font-synthesis:none;line-height:1.55}
.tl-root *{box-sizing:border-box}
.tl-root :where(h1,h2,h3,p,ol,ul,dl,dd){margin:0}
.tl-root :where(button,input,select,textarea){font:inherit;color:inherit}
.tl-root :where(button,input,select,textarea,summary):focus-visible{outline:2px solid var(--tl-red);outline-offset:3px}
.tl-muted{color:var(--tl-muted)}
.tl-small{font-size:13px}
.tl-center{text-align:center;margin-top:18px}
.tl-eyebrow{display:block;font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--tl-red);margin-bottom:8px}
.tl-root h1{font-size:clamp(24px,4.2vw,32px);line-height:1.25;letter-spacing:-.02em;text-wrap:balance}
.tl-root h1 em{font-style:normal;color:var(--tl-red)}
.tl-root h2{font-size:19px;line-height:1.3;letter-spacing:-.01em}
.tl-root h3{font-size:15px;margin:18px 0 8px}
.tl-root h3 small{font-weight:400;color:var(--tl-muted);font-size:12px;margin-left:8px}
.tl-lead{color:var(--tl-muted);margin:10px 0 20px;max-width:62ch}
.tl-note{font-size:13px;color:var(--tl-muted);margin-top:16px;padding:10px 12px;background:var(--tl-paper);border-radius:10px}
.tl-offscreen{position:fixed;left:-9999px;top:0}
/* 按钮 */
.tl-btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #e5ddd6;border-radius:10px;padding:0 16px;background:#fff;font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}
.tl-btn:hover{background:#faf4f1;border-color:#d7b9ac}
.tl-btn:disabled{opacity:.5;cursor:not-allowed}
.tl-btn.tl-primary{background:var(--tl-red);border-color:var(--tl-red);color:#fff}
.tl-btn.tl-primary:hover{background:var(--tl-red-dark)}
.tl-btn.tl-soft{background:var(--tl-soft);border-color:#f2d1c7;color:var(--tl-red)}
.tl-btn.tl-text{border-color:transparent;background:transparent;color:var(--tl-red);padding:0 10px}
.tl-btn.tl-text:hover{background:var(--tl-soft)}
.tl-btn.tl-danger{color:#b3261e}
.tl-btn.tl-primary.tl-danger,.tl-btn.tl-danger:not(.tl-text){background:#b3261e;border-color:#b3261e;color:#fff}
.tl-btn.tl-small{min-height:34px;padding:0 12px;font-size:13px}
.tl-row-btns{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px}
.tl-row-btns.tl-wrap > *{flex:1 1 auto}
.tl-select{height:40px;border:1px solid var(--tl-border);border-radius:10px;background:#fff;padding:0 10px;max-width:100%}
.tl-select.tl-small{height:34px;font-size:13px}
/* 头像 */
.tl-avatar{width:38px;height:38px;border-radius:50%;background:var(--tl-soft);color:var(--tl-red);display:inline-flex;align-items:center;justify-content:center;font-weight:600;flex-shrink:0}
.tl-avatar.tl-large{width:52px;height:52px;font-size:20px}
/* 数字 */
.tl-num b{font-size:1.25em;font-variant-numeric:tabular-nums;margin-right:2px}
.tl-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:6px}
.tl-stat{background:var(--tl-paper);border-radius:10px;padding:9px 12px;font-size:14px}
.tl-stat small{display:block;font-size:12px;color:var(--tl-muted);margin-bottom:2px}
.tl-stat.tl-wide{grid-column:1/-1}
.tl-stat.tl-warn,.tl-totals .tl-warn{background:var(--tl-warn-bg);color:var(--tl-warn)}
.tl-chips{display:flex;flex-wrap:wrap;gap:6px}
.tl-chip{font-size:13px;padding:3px 10px;border-radius:999px;background:var(--tl-paper);border:1px solid var(--tl-border)}
.tl-profile{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;font-size:14px}
.tl-profile dt{color:var(--tl-muted)}
.tl-profile dd{word-break:break-word}
/* 看板 */
.tl-board{max-width:980px}
.tl-board .tl-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;flex-wrap:wrap;margin-bottom:20px}
.tl-board .tl-head > div:first-child{flex:1 1 420px}
.tl-board .tl-head p{margin-top:8px;max-width:60ch}
.tl-totals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:8px}
.tl-totals > div{background:#fff;border:1px solid var(--tl-border);border-radius:12px;padding:12px 14px}
.tl-totals small{display:block;font-size:12px;color:var(--tl-muted)}
.tl-totals .tl-num b{font-size:22px}
.tl-list-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:22px 0 10px}
.tl-members{display:flex;flex-direction:column;gap:8px}
.tl-member{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#fff;border:1px solid var(--tl-border);border-radius:12px;padding:12px 14px;cursor:pointer}
.tl-member:hover{border-color:#d7b9ac;background:#fffcfa}
.tl-who{display:flex;flex-direction:column;min-width:110px;flex:0 1 190px}
.tl-who small{color:var(--tl-muted);font-size:12px}
.tl-mini{display:flex;gap:16px;flex:1;flex-wrap:wrap;font-size:13px;font-variant-numeric:tabular-nums}
.tl-mini > span{display:flex;flex-direction:column;min-width:86px}
.tl-mini small{color:var(--tl-muted);font-size:11px}
.tl-mini .tl-warn{color:var(--tl-warn);font-weight:600}
.tl-arrow{color:var(--tl-muted);font-size:20px}
.tl-empty{background:#fff;border:1px dashed var(--tl-border);border-radius:14px;padding:22px;max-width:640px}
.tl-empty p{margin:8px 0 14px;color:var(--tl-muted)}
.tl-steps{margin:12px 0 16px;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.tl-invites{margin-top:20px;background:#fff;border:1px solid var(--tl-border);border-radius:12px;padding:10px 14px}
.tl-invites summary{cursor:pointer;font-weight:500}
.tl-invite{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;border-top:1px solid var(--tl-border);font-size:14px}
.tl-invite:first-of-type{border-top:0}
.tl-invite .tl-row-btns{margin:0}
.tl-invite small{color:var(--tl-muted)}
/* 伙伴档案页上的卡 */
.tl-person-card{background:#fff;border:1px solid var(--tl-border);border-radius:14px;padding:16px;margin:18px 0}
.tl-person-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.tl-person-off{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.tl-person-off p{margin-top:4px}
.tl-person-profile{margin-top:12px}
.tl-person-profile summary{cursor:pointer;font-size:14px;color:var(--tl-red);margin-bottom:8px}
.tl-person-card .tl-chips{margin-top:8px}
/* 弹层 */
.tl-backdrop{position:fixed;inset:0;background:rgba(24,20,18,.42);display:flex;align-items:center;justify-content:center;z-index:2000;padding:16px}
.tl-sheet{position:relative;background:#fff;border-radius:16px;max-width:560px;width:100%;max-height:calc(100vh - 32px);overflow:auto;padding:22px 20px 20px;box-shadow:0 18px 50px rgba(0,0,0,.18)}
.tl-sheet h2{padding-right:30px}
.tl-sheet > .tl-muted{margin-top:8px}
.tl-sheet-x{position:absolute;right:10px;top:10px;width:36px;height:36px;border:0;background:transparent;font-size:24px;line-height:1;color:var(--tl-muted);cursor:pointer;border-radius:8px}
.tl-sheet-x:hover{background:var(--tl-paper)}
.tl-sheet-head{display:flex;gap:12px;align-items:center;margin-bottom:6px}
.tl-code-box{margin:16px 0 10px;background:var(--tl-soft);border-radius:12px;padding:12px 14px;display:flex;align-items:baseline;gap:12px}
.tl-code-box small{color:var(--tl-muted)}
.tl-code-box strong{font-size:26px;letter-spacing:.18em;font-variant-numeric:tabular-nums;color:var(--tl-red)}
.tl-invite-text{width:100%;border:1px solid var(--tl-border);border-radius:10px;padding:10px 12px;font-size:14px;line-height:1.6;resize:vertical;background:var(--tl-paper)}
.tl-toast{position:fixed;left:50%;bottom:calc(28px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:#202633;color:#fff;padding:10px 16px;border-radius:10px;font-size:14px;z-index:2100;max-width:calc(100vw - 32px)}
/* 伙伴这边：同意页、授权列表 */
.tl-page{max-width:640px;margin:0 auto}
.tl-block{background:#fff;border:1px solid var(--tl-border);border-radius:14px;padding:14px 16px;margin-top:12px}
.tl-block h3{margin-top:0}
.tl-block.tl-never{background:var(--tl-paper)}
.tl-fields{display:flex;flex-direction:column;gap:2px}
.tl-field{display:flex;gap:10px;align-items:flex-start;padding:8px 2px;border-top:1px solid #f2ece8;cursor:pointer}
.tl-field:first-child{border-top:0}
.tl-field input{width:18px;height:18px;margin-top:3px;accent-color:var(--tl-red);flex-shrink:0}
.tl-field span{display:flex;flex-direction:column;min-width:0}
.tl-field small{color:var(--tl-muted);font-size:13px;word-break:break-word}
.tl-field.tl-blank small{font-style:italic}
.tl-field.tl-big{border-top:0;padding-top:0}
.tl-items{padding-left:20px;font-size:14px;color:var(--tl-muted);display:flex;flex-direction:column;gap:2px;margin-top:6px}
.tl-code-row{display:flex;gap:8px;margin-bottom:18px}
.tl-code-input{flex:1;min-width:0;height:44px;border:1px solid var(--tl-border);border-radius:10px;padding:0 12px;font-size:16px;letter-spacing:.08em;text-transform:uppercase;background:#fff}
.tl-link-card{background:#fff;border:1px solid var(--tl-border);border-radius:14px;padding:16px;margin-bottom:12px}
.tl-link-head{display:flex;gap:12px;align-items:center}
.tl-link-head small{display:block;color:var(--tl-muted);font-size:12px}
.tl-rule{border:0;border-top:1px solid var(--tl-border);margin:30px 0 24px}
.tl-done h1{margin-bottom:4px}
/* 独立页 */
body.tl-standalone{margin:0;background:#faf8f6}
body.tl-standalone #teamLinkRoot{padding:28px 16px calc(40px + env(safe-area-inset-bottom,0px))}
@media (max-width:760px){
  .tl-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tl-totals > div:first-child{grid-column:1/-1}
  .tl-member{flex-wrap:wrap}
  .tl-who{flex:1 1 auto}
  .tl-mini{order:3;flex-basis:100%;gap:10px}
  .tl-mini > span{min-width:0;flex:1}
  .tl-hide-sm{display:none !important}
  .tl-backdrop{align-items:flex-end;padding:0}
  .tl-sheet{border-radius:16px 16px 0 0;max-height:88vh;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
  .tl-profile{grid-template-columns:1fr;gap:0}
  .tl-profile dd{margin-bottom:8px}
  .tl-board h1 em{display:block}
  .tl-board .tl-head .tl-row-btns,.tl-scope-form > .tl-row-btns{width:100%}
  .tl-board .tl-head .tl-row-btns .tl-btn,.tl-scope-form > .tl-row-btns .tl-btn,.tl-empty > .tl-btn{flex:1;min-height:46px}
}
@media (max-width:420px){
  .tl-stats{grid-template-columns:1fr}
}
/* team-step2-1028：手机伙伴列表、加伙伴进群里的「已关联」 */
.tm-flag.tm-linked { background: #e8f4ec; color: #2f7d4f; }
.tm-pick .tm-flag.tm-linked { margin-left: auto; }
.tm-pick-linked { margin-bottom: 10px; }
.tl-m-card:empty { display: none; }
.tl-m-card { margin: 4px 0 12px; }
/* team-share-1028：请老师看 */
.tl-share-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
.tl-share-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; width: 100%; padding: 10px 12px; border: 1px solid #ece4de; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.tl-share-item:hover { background: #fbf6f3; }
.tl-share-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-share-stage { color: #6f7886; }
.tl-badge-new { background: #c52d23; color: #fff; border-radius: 8px; padding: 0 6px; font-size: 11px; line-height: 18px; }
.tl-share-note { color: #3a3f4a; font-size: 13px; line-height: 1.5; }
.tl-share-ask { background: #fff3ef; border-radius: 10px; padding: 10px 12px; line-height: 1.6; }
.tl-share-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 8px 0; }
.tl-share-facts > div { display: contents; }
.tl-share-facts dt { color: #6f7886; }
.tl-share-facts dd { margin: 0; }
.tl-share-events { margin: 4px 0 10px; padding-left: 18px; line-height: 1.6; }
.tl-share-label { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-weight: 600; }
.tl-share-input { width: 100%; box-sizing: border-box; border: 1px solid #e5ddd6; border-radius: 10px; padding: 8px 10px; font: inherit; font-weight: 400; resize: vertical; }
.tl-share-title { margin: 12px 0 4px; font-size: 15px; }
.tl-ask-btn[hidden] { display: none !important; }
.tl-m-ask { margin: 10px 0 4px; }
.tl-m-ask:empty { display: none; }
.tl-m-ask .tl-ask-btn { width: 100%; min-height: 44px; border: 1px solid #e5ddd6; border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: #202633; cursor: pointer; }
/* points-v8-1028：手机新版每条回复下面这次用了多少积分（team-link.css 手机页面也加载） */
.answer-actions .turn-points { order: 99; align-self: center; font-size: 12px; color: #8a8f99; white-space: nowrap; } /* points-ledger-1028：不再 margin-left:auto 顶到右边 */
/* 分团队、分群（team-groups-1028） */
.tl-groups{display:flex;flex-direction:column;gap:8px;margin:0 0 12px}
.tl-grow{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tl-glabel{font-size:12px;color:var(--tl-muted);min-width:32px}
.tl-gchip{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--tl-border);background:#fff;font-size:13px;cursor:pointer;white-space:nowrap;max-width:100%}
.tl-gchip small{color:var(--tl-muted);font-size:12px;font-variant-numeric:tabular-nums}
.tl-gchip:hover{border-color:#d7b9ac}
.tl-gchip.tl-on{background:var(--tl-soft);border-color:#f2d1c7;color:var(--tl-red);font-weight:500}
.tl-gchip.tl-on small{color:var(--tl-red)}
.tl-gmanage .tl-btn{padding:0 4px}
.tl-groups-empty{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap;background:var(--tl-paper);border-radius:12px;padding:10px 14px;margin:0 0 12px}
.tl-groups-empty p{flex:1 1 280px}
.tl-gtags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.tl-gtag{font-size:11px;line-height:18px;padding:0 7px;border-radius:999px;background:var(--tl-paper);border:1px solid var(--tl-border);color:var(--tl-muted);white-space:nowrap}
.tl-gtag.tl-team{background:var(--tl-soft);border-color:#f2d1c7;color:var(--tl-red)}
.tl-mgroups .tl-row-btns{margin-top:10px}
.tl-mg-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}
.tl-mg-row .tl-chips{flex:1;min-width:0}
.tl-gsec + .tl-gsec{margin-top:6px}
.tl-glist{display:flex;flex-direction:column}
.tl-gitem{display:flex;justify-content:space-between;align-items:center;gap:6px 8px;flex-wrap:wrap;padding:8px 0;border-top:1px solid #f2ece8}
.tl-gitem:first-child{border-top:0}
.tl-gitem .tl-row-btns{margin:0;gap:4px}
.tl-gname{display:flex;align-items:baseline;gap:8px;min-width:0}
.tl-gname b{word-break:break-word}
.tl-gname small{color:var(--tl-muted);font-size:12px;white-space:nowrap}
.tl-gadd{display:flex;gap:8px;margin-top:8px}
.tl-ginput{flex:1;min-width:0;height:36px;border:1px solid var(--tl-border);border-radius:10px;padding:0 10px;font-size:14px;background:#fff}
.tl-sheet > .tl-ginput{display:block;width:100%;margin-top:14px;height:42px}
.tl-gpick{margin-top:10px;max-height:46vh;overflow:auto}
@media (max-width:760px){.tl-ginput{font-size:16px;height:40px}}
