.fortune-history-dialog{
  border:none;
  border-radius:16px;
  padding:0;
  max-width:620px;
  width:94%;
  background:#fff;
  color:#0f172a;
  box-shadow:0 30px 70px rgba(0,0,0,.35);
}
.fortune-history-card{
  padding:20px;
  display:grid;
  gap:12px;
}
.fortune-history-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.fortune-history-title{
  font-size:18px;
  font-weight:700;
}
.fortune-history-close{
  border:none;
  background:#f1f5f9;
  color:#0f172a;
  border-radius:999px;
  width:28px;
  height:28px;
  cursor:pointer;
}
.fortune-history-error{
  padding:10px 12px;
  border-radius:10px;
  background:#fef2f2;
  border:1px solid rgba(239,68,68,.2);
  color:#991b1b;
  font-size:13px;
}
.fortune-history-loading{
  font-size:13px;
  color:#64748b;
}
.fortune-history-list{
  display:grid;
  gap:10px;
}
.fortune-history-item{
  border:1px solid rgba(148,163,184,.25);
  border-radius:12px;
  padding:10px 12px;
  background:#f8fafc;
}
.fortune-history-item summary{
  cursor:pointer;
  font-size:13px;
  color:#0f172a;
  list-style:none;
}
.fortune-history-item summary::-webkit-details-marker{
  display:none;
}
.fortune-history-card{
  border:1px solid rgba(148,163,184,.25);
  border-radius:12px;
  padding:10px 12px;
  background:#f8fafc;
}
.fortune-history-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  list-style:none;
}
.fortune-history-summary::-webkit-details-marker{
  display:none;
}
.fortune-history-left{
  display:grid;
  gap:4px;
}
.fortune-history-date{
  font-size:13px;
  color:#0f172a;
  font-weight:600;
}
.fortune-history-phum{
  font-size:12px;
  color:#475569;
}
.fortune-history-badge{
  font-size:11px;
  font-weight:600;
  padding:4px 8px;
  border-radius:999px;
  background:#e2e8f0;
  color:#334155;
  white-space:nowrap;
}
.fortune-history-badge.is-done{
  background:#dcfce7;
  color:#166534;
}
.fortune-history-badge.is-pending{
  background:#fef9c3;
  color:#854d0e;
}
.fortune-history-badge.is-missing{
  background:#e2e8f0;
  color:#475569;
}
.fortune-history-task{
  font-size:12px;
  color:#0f172a;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.fortune-history-body{
  margin-top:8px;
  font-size:12px;
  color:#475569;
  display:grid;
  gap:6px;
}
.fortune-history-row strong{
  color:#0f172a;
}
.fortune-history-preview{
  font-size:11px;
  color:#94a3b8;
}
.fortune-history-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}
.fortune-history-share{
  border:1px solid rgba(148,163,184,.4);
  border-radius:10px;
  padding:8px 10px;
  font-size:12px;
  color:#0f172a;
  background:#fff;
  cursor:pointer;
}
.fortune-history-view{
  border:1px solid rgba(15,23,42,.15);
  border-radius:10px;
  padding:8px 10px;
  font-size:12px;
  color:#0f172a;
  background:#f8fafc;
  cursor:pointer;
}
.fortune-history-share:active{
  transform:scale(.98);
}

.fortune-share-wrap{
  position:fixed;
  left:-99999px;
  top:0;
  z-index:-1;
  padding:12px;
  background:#ffffff;
}
.fortune-share-card{
  width:520px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.2);
  background:#fff;
  color:#0f172a;
  overflow:hidden;
  font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
}
.share-brandbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid rgba(148,163,184,.2);
}
.share-brandleft{
  display:flex;
  align-items:center;
  gap:10px;
}
.share-brandbar img{
  width:22px;
  height:22px;
  border-radius:6px;
  object-fit:cover;
}
.share-brandname{
  font-weight:700;
  font-size:13px;
}
.share-brandsite{
  font-size:11px;
  opacity:.7;
}
.fortune-share-body{
  padding:12px 14px 16px;
}
.fortune-share-head{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
  color:#475569;
}
.fortune-share-date{
  font-weight:600;
  color:#0f172a;
}
.fortune-share-phum{
  font-weight:600;
  color:#334155;
}
.fortune-share-status{
  padding:2px 8px;
  border-radius:999px;
  background:#e2e8f0;
  color:#1f2937;
  font-size:11px;
}
.fortune-share-task{
  margin-top:10px;
  font-weight:700;
  font-size:14px;
  color:#0f172a;
}
.fortune-share-row{
  margin-top:8px;
  font-size:12px;
  color:#334155;
  line-height:1.6;
}
.share-line{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.share-line.clamp-4{
  -webkit-line-clamp:4;
}
