/* 分享链接 UI（客人落地卡 / 分享弹窗 / 作答说明条 / 结果提示）。
 *
 * 只走变量令牌（--surface / --border / --brand …）与动效令牌（--dur-* / --ease-*），
 * 不写裸 hex、不写裸 ms —— 与组件库同一条纪律（见 diagnosis-service/tests/test_design_system_components.py）。
 * 变量都带兜底：demo 三页的 :root 是精简版，缺一个变量会让整条声明失效。
 */
.se-share-card{max-width:640px;margin:0 auto;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius,16px);padding:28px;box-shadow:var(--shadow)}
.se-share-kicker{display:inline-block;font-size:12px;letter-spacing:.4px;font-weight:700;
  color:var(--brand);background:var(--surface2);border:1px solid var(--border);border-radius:999px;padding:4px 12px}
.se-share-title{font-size:21px;font-weight:800;margin:12px 0 10px;line-height:1.35;letter-spacing:-.2px}
.se-share-desc{color:var(--muted);font-size:14px;line-height:1.8;margin:0}
.se-share-facts{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:8px}
.se-share-facts li{display:flex;justify-content:space-between;gap:14px;font-size:13.5px;
  border-top:1px solid var(--border);padding-top:9px}
.se-share-facts li>span:first-child{color:var(--muted)}
.se-share-facts li>span:last-child{text-align:right}
.se-share-ack{display:flex;gap:10px;align-items:flex-start;margin-top:18px;font-size:13px;
  color:var(--muted);line-height:1.7;cursor:pointer}
.se-share-ack input{flex:0 0 auto;width:18px;height:18px;margin-top:2px;accent-color:var(--brand)}
.se-share-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.se-share-actions .btn{padding:12px 22px;font-size:14.5px}
.se-share-actions .btn[disabled]{opacity:.55;cursor:not-allowed;transform:none}
.se-share-banner{margin:0 0 18px;padding:11px 15px;border:1px solid var(--border);
  border-left:3px solid var(--brand);border-radius:12px;background:var(--surface2);
  color:var(--muted);font-size:13px;line-height:1.75}
.se-share-banner strong{color:var(--text)}
.se-share-note{margin:14px 0 0;padding:11px 15px;border:1px dashed var(--border);
  border-radius:12px;color:var(--muted);font-size:13px;line-height:1.75}
.se-share-wrap{position:fixed;inset:0;z-index:var(--z-palette,80);display:flex;align-items:center;
  justify-content:center;padding:20px;background:rgba(6,9,18,.62);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  animation:seShareFade var(--dur-2) var(--ease-standard) both}
.se-share-dialog{width:100%;max-width:540px;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius,16px);box-shadow:var(--shadow);padding:26px;
  animation:seShareRise var(--dur-3) var(--ease-enter) both}
.se-share-dialog .se-share-title{font-size:18px;margin:0 0 10px}
.se-share-link{display:flex;gap:8px;margin-top:16px}
/* 分享设置（份数 + 有效期）：建链接前先问一次，别建完再改一条已经发出去的链接 */
.se-share-field{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:13.5px}
.se-share-field>label{color:var(--muted);flex:0 0 auto}
.se-share-field input{width:96px;padding:11px 12px;border-radius:12px;border:1px solid var(--border);
  background:var(--surface2);color:var(--text);font-size:14px;font-variant-numeric:tabular-nums}
.se-share-field input:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.se-share-unit{color:var(--muted)}
.se-share-ttl{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}
.se-share-ttl-lbl{color:var(--muted);font-size:13.5px;margin-right:2px}
.se-share-opt{position:relative;display:inline-flex;cursor:pointer}
.se-share-opt input{position:absolute;opacity:0;width:1px;height:1px}
.se-share-opt>span{display:inline-flex;padding:8px 15px;border-radius:999px;border:1px solid var(--border);
  background:var(--surface2);font-size:13px;color:var(--text);
  transition:border-color var(--dur-2) var(--ease-standard),color var(--dur-2) var(--ease-standard)}
.se-share-opt input:checked+span{border-color:var(--brand);color:var(--brand);background:var(--surface)}
.se-share-opt input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}
.se-share-link input{flex:1 1 auto;min-width:0;padding:12px 14px;border-radius:12px;
  border:1px solid var(--border);background:var(--surface2);color:var(--text);font-size:13px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.se-share-msg{margin:10px 0 0;min-height:18px;color:var(--muted);font-size:12.5px;line-height:1.7}
.se-share-msg.ok{color:var(--good,var(--brand))}
.se-share-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* 结果列表里的「他人分享」标记（我的档案） */
.se-share-tag{margin-top:10px;padding:9px 13px;border:1px solid var(--border);border-left:3px solid var(--brand);
  border-radius:10px;background:var(--surface2);color:var(--muted);font-size:12.5px;line-height:1.7}
.se-share-tag strong{color:var(--text)}
/* 「我发出的分享」管理列表（我的档案） */
.se-share-row{border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin-bottom:10px;
  background:var(--surface2)}
.se-share-row-main{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:14px}
.se-share-row-meta{margin-top:6px;color:var(--muted);font-size:12.5px;line-height:1.7;
  font-variant-numeric:tabular-nums}
.se-share-row-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.se-share-row-acts .btn{font-size:12.5px;padding:7px 13px}
.se-share-kind{font-size:11.5px;font-weight:700;letter-spacing:.3px;color:var(--brand);
  background:var(--surface2);border:1px solid var(--border);border-radius:999px;padding:2px 9px}
.se-share-state{margin-left:auto;font-size:12px;color:var(--muted)}
.se-share-state.active{color:var(--good,var(--brand))}
.se-share-state.revoked,.se-share-state.expired,.se-share-state.exhausted{color:var(--muted)}
.se-share-empty{color:var(--muted);font-size:13.5px;line-height:1.75;margin:0}
@keyframes seShareFade{from{opacity:0}to{opacity:1}}
@keyframes seShareRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (max-width:560px){
  .se-share-card{padding:22px 18px}
  .se-share-dialog{padding:20px 18px}
  .se-share-actions .btn{flex:1 1 100%;justify-content:center}
  .se-share-link{flex-wrap:wrap}
  .se-share-link .btn{flex:1 1 100%;justify-content:center}
}
@media (prefers-reduced-motion:reduce){
  .se-share-wrap,.se-share-dialog{animation:none}
}
