/* Accurate186's raw-link popover reuses the document group anchor. */
body:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-input-group[data-group-kind="document"] {position:relative;}
.reference-link-popover {line-height:1.5;position:absolute;bottom:calc(100% + .625rem);right:-.5rem;width:16rem;box-sizing:border-box;color:#fff;background:rgb(28,30,34);border:.0625rem solid rgba(255,255,255,.2);border-radius:.5rem;box-shadow:0 .5rem 1.5rem #00000047;padding:.625rem;z-index:200;display:flex;flex-direction:column;gap:.5rem;}
.reference-link-input {width:100%;height:1.875rem;box-sizing:border-box;background:rgb(45,47,53);border:.0625rem solid rgba(98,105,113,.6);border-radius:.375rem;color:rgb(245,251,255);font-family:Arial;line-height:normal;font-size:.75rem;padding:0 .5rem;outline:none;}
.reference-link-actions {display:flex;justify-content:flex-end;gap:.375rem;}
.reference-link-actions button {height:1.5rem;padding:0 .75rem;border-radius:.375rem;font-family:Arial;line-height:normal;font-size:.6875rem;cursor:pointer;border:.0625rem solid rgba(98,105,113,.6);transition:all .15s ease;background:transparent;color:rgb(140,153,160);}
.reference-link-actions button:hover {border-color:rgba(255,255,255,.4);color:#fff;}
.reference-link-actions .confirm {background:#00cae0;color:#fff;border-color:transparent;}
.reference-link-actions .confirm:hover {filter:brightness(1.1);}
.reference-link-toast {position:absolute;bottom:-2.25rem;left:0;right:0;background:rgba(239,68,68,.92);color:#fff;padding:.375rem .75rem;border-radius:.375rem;font-size:.6875rem;z-index:9999;pointer-events:none;text-align:center;}
.reference-link-card {display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:.125rem;padding:0 .1875rem!important;box-sizing:border-box;cursor:pointer;background:linear-gradient(135deg,#0ea5e973,#3b82f64d)!important;border:1px solid #fff!important;}
.reference-link-mark {display:flex;align-items:center;justify-content:center;width:20px;height:20px;color:rgba(255,255,255,.95);}
.reference-link-host {max-width:3.125rem;font-size:.5625rem;font-weight:600;color:rgba(255,255,255,.8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.reference-link-corner {font:400 13.3333px Arial;position:absolute;top:-.625rem;right:-.625rem;width:1.375rem;height:1.375rem;border-radius:.3125rem;background:rgb(28,30,34);border:.0625rem solid color-mix(in srgb,#00cae0 42%,transparent);color:#00cae0;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:11;padding:0;box-shadow:0 .125rem .375rem #0000002e;transition:transform .15s ease,border-color .15s ease,background .15s ease;transform:rotate(8deg);transform-origin:center;}
.reference-link-corner svg {width:12px;height:12px;}
.reference-link-corner:hover,.reference-link-corner.is-active {border-color:#00cae0;background:color-mix(in srgb,#00cae0 16%,rgb(28,30,34));transform:rotate(8deg) scale(1.08);}
@media(min-width:841px){.reference-link-corner{display:none;}}
/* Accurate205 uses the same upright document/link corner on both viewports. */
body:has(.model-item-active[data-model-id="wanxiang-3.0"]) .reference-input-group[data-group-kind="document"] {position:relative;}
body:has(.model-item-active[data-model-id="wanxiang-3.0"]) .reference-link-corner {display:flex;transform:none;}
body:has(.model-item-active[data-model-id="wanxiang-3.0"]) .reference-link-corner:is(:hover,.is-active) {transform:scale(1.08);}
.reference-link-body {width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.125rem;padding:0 .1875rem;box-sizing:border-box;color:rgba(255,255,255,.95);overflow:hidden;}
.reference-link-input:focus {border-color:#00cae0;}
