.cs-layer{position:fixed;inset:0;z-index:1000;font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:#222}
.cs-backdrop{position:absolute;inset:0;background:transparent}
.cs-panel{position:absolute;width:320px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;background:#fff;border:1px solid #e5e1d8;border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.18);padding:14px;font-size:14px}
.cs-layer[data-mode="sheet"] .cs-backdrop{background:rgba(0,0,0,.45)}
.cs-layer[data-mode="sheet"] .cs-panel{left:0;right:0;bottom:0;top:auto;width:auto;max-width:none;max-height:85vh;border-radius:14px 14px 0 0;border:0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));animation:cs-up .18s ease-out}
@keyframes cs-up{from{transform:translateY(30px);opacity:.4}to{transform:none;opacity:1}}
.cs-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.cs-thumb{width:44px;height:44px;border-radius:6px;object-fit:cover;background:#f6f4f0;flex-shrink:0;border:1px solid #e5e1d8}
.cs-head-t{flex:1;min-width:0}
.cs-title{font-weight:600;font-size:15px}
.cs-sub{color:#888;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-x{border:0;background:none;font-size:22px;line-height:1;width:32px;height:32px;border-radius:50%;cursor:pointer;color:#666;flex-shrink:0}
.cs-x:hover{background:#f3efe6}
.cs-link{display:flex;gap:6px}
.cs-url{flex:1;min-width:0;padding:8px 10px;border:1px solid #e5e1d8;border-radius:6px;background:#f6f4f0;font-size:12px;color:#555}
.cs-copy{display:inline-flex;align-items:center;gap:4px;border:0;border-radius:6px;background:#8a6d2f;color:#fff;padding:8px 12px;font-size:13px;cursor:pointer;white-space:nowrap}
.cs-copy:hover{background:#755c26}
.cs-copy.done{background:#3f7d4e}
.cs-status{min-height:18px;font-size:12px;color:#3f7d4e;margin:4px 0 6px}
.cs-opts{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.cs-opt{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border:1px solid #e5e1d8;border-radius:8px;background:#fff;color:#444;font-size:12px;text-decoration:none;cursor:pointer;font-family:inherit}
.cs-opt:hover,.cs-opt[aria-expanded="true"]{border-color:#8a6d2f;background:#f6f4f0;color:#8a6d2f}
.cs-ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.cs-copy .cs-ico{width:16px;height:16px}
.cs-qr{margin-top:12px;text-align:center}
.cs-qr-svg{width:200px;height:200px;display:block;margin:0 auto;border:1px solid #e5e1d8;border-radius:6px}
.cs-muted{color:#888;font-size:12px;margin:6px 0 0}
.cs-layer button:focus-visible,.cs-layer a:focus-visible,.cs-layer input:focus-visible{outline:2px solid #8a6d2f;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.cs-layer[data-mode="sheet"] .cs-panel{animation:none}}
